Skip to content

Commit

Permalink
Merge pull request eee555#44 from hwatson381/feature-vite
Browse files Browse the repository at this point in the history
Migrate from vue-cli to vite
  • Loading branch information
eee555 authored Jun 9, 2024
2 parents 30f8102 + fa95c88 commit 87d9f50
Show file tree
Hide file tree
Showing 26 changed files with 2,946 additions and 15,486 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
1.[https://github.com/eee555/flop-player/releases/download/v1.1/dist.zip](https://github.com/eee555/flop-player/releases/download/v1.1/dist.zip)下载新版flop播放器,并解压到saolei_website\front_end\public\flop下(将文件夹的名称dist修改为flop),使得saolei_website\front_end\public\flop\index.html能够被找到
1. cd saolei_website\front_end
1. npm install
1. npm run serve
1. npm run dev

特殊的调试参数:位于`backend\saolei\config\flags.py`

Expand Down
2 changes: 1 addition & 1 deletion Readme_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Front end:
1. Download the latest flop player from [https://github.com/eee555/flop-player/releases/download/v1.1/dist.zip](https://github.com/eee555/flop-player/releases/download/v1.1/dist.zip) and unzip it to `saolei_website\front_end\public\flop` (rename the folder name `dist` to `flop`), such that `saolei_website\front_end\public\flop\index.html` is accessible.
1. `cd saolei_website\front_end`
1. `npm install`
1. `npm run serve`
1. `npm run dev`

Special debugging parameters are located in `backend\saolei\config\flags.py`

Expand Down
4 changes: 2 additions & 2 deletions front_end/.env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NODE_ENV = "development"
VUE_APP_API_URL = "http://127.0.0.1:8000"
VUE_APP_BASE_API = "http://127.0.0.1:8000"
VITE_API_URL = "http://127.0.0.1:8000"
VITE_BASE_API = "http://127.0.0.1:8000"
5 changes: 2 additions & 3 deletions front_end/.env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
NODE_ENV = "production"
VUE_APP_API_URL = "https://fff666.top"
VUE_APP_BASE_API = "https://fff666.top"
VITE_API_URL = "https://fff666.top"
VITE_BASE_API = "https://fff666.top"
8 changes: 4 additions & 4 deletions front_end/public/index.html → front_end/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>

<link rel="icon" href="/favicon.ico">
<title>元扫雷网</title>
<script>
var _hmt = _hmt || [];
(function() {
Expand All @@ -20,9 +19,10 @@
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but 元扫雷网 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 87d9f50

Please sign in to comment.