Skip to content

Commit

Permalink
Merge pull request #10 from yiruzu/frontend-source
Browse files Browse the repository at this point in the history
feat(frontend): add frontend source code
  • Loading branch information
yiruzu authored Jan 9, 2025
2 parents c707eb5 + b5cae3e commit 1926b8e
Show file tree
Hide file tree
Showing 20 changed files with 4,015 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web/build/*
6 changes: 3 additions & 3 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use_experimental_fxv2_oal "yes"

author "yiruzu"
description "Cloud Resources - Shop"
version "1.1.6"
version "1.1.7"

discord "https://discord.gg/jAnEnyGBef"
repository "https://github.com/yiruzu/cloud-shop"
Expand All @@ -17,5 +17,5 @@ shared_scripts { "@ox_lib/init.lua", "shared/sh_functions.lua" }
server_scripts { "bridge/server/*.lua", "server/*.lua" }
client_scripts { "client/*.lua" }

ui_page { "web/index.html" }
files { "web/**/*" }
ui_page { "web/build/index.html" }
files { "web/build/**/*" }
18 changes: 0 additions & 18 deletions web/assets/index-CW-Wi0KY.js

This file was deleted.

1 change: 0 additions & 1 deletion web/assets/index-Iz0rhVG8.css

This file was deleted.

6 changes: 6 additions & 0 deletions web/source/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"arrowParens": "avoid",
"printWidth": 180
}
35 changes: 35 additions & 0 deletions web/source/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# cloud-shop

This template should help get you started developing with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).

## Customize configuration

See [Vite Configuration Reference](https://vite.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Compile and Minify for Production

```sh
npm run build
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```
19 changes: 19 additions & 0 deletions web/source/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'

export default [
{
name: 'app/files-to-lint',
files: ['**/*.{js,mjs,jsx,vue}'],
},

{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
},

js.configs.recommended,
...pluginVue.configs['flat/essential'],
skipFormatting,
]
3 changes: 1 addition & 2 deletions web/index.html → web/source/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cloud Shop</title>
<script type="module" crossorigin src="./assets/index-CW-Wi0KY.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Iz0rhVG8.css">
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
9 changes: 9 additions & 0 deletions web/source/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
Loading

0 comments on commit 1926b8e

Please sign in to comment.