Skip to content

Commit 470f6e6

Browse files
authored
Merge pull request #103 from BUAA-SE-coders007/release
Alpha Release
2 parents 23293fc + 1be20aa commit 470f6e6

File tree

108 files changed

+33715
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+33715
-0
lines changed

.env.development

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# API URL Configuration
2+
VITE_API_URL=https://jienote.top

.env.mock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# API URL Configuration for Mock Environment
2+
VITE_API_URL=http://127.0.0.1:4523/m2/6178223-5870624-default

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock.json merge=theirs

.github/workflows/check.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
- main
8+
- release
9+
10+
jobs:
11+
lint-and-build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Checkout the repository
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
# Set up the latest Node.js
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 22.9.0 # Use the latest LTS version of Node.js
24+
cache: 'npm'
25+
26+
# Upgrade npm to the latest version
27+
- name: Upgrade npm
28+
run: npm install -g npm@latest
29+
30+
# Install dependencies
31+
- name: Install dependencies
32+
run: npm install
33+
34+
# Run lint
35+
- name: Run ESLint
36+
run: npm run lint
37+
38+
# Run build
39+
- name: Build project
40+
run: npm run build

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to Server
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 22.x
21+
22+
- name: Updata Npm
23+
run: npm install -g npm@latest
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Build project
29+
run: npm run build
30+
31+
- name: Deploy to Server
32+
uses: appleboy/[email protected]
33+
with:
34+
host: ${{ secrets.REMOTE_HOST }}
35+
username: ${{ secrets.REMOTE_USER }}
36+
key: ${{ secrets.SERVER_SSH_KEY }}
37+
port: 22
38+
source: ./dist/*
39+
target: /var/www/html/jienote/
40+
41+
- name: Set permissions on server
42+
uses: appleboy/[email protected]
43+
with:
44+
host: ${{ secrets.REMOTE_HOST }}
45+
username: ${{ secrets.REMOTE_USER }}
46+
key: ${{ secrets.SERVER_SSH_KEY }}
47+
port: 22
48+
script: |
49+
sudo chown -R www-data:www-data /var/www/html/jienote
50+
sudo chmod -R 755 /var/www/html/jienote

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.idea
3+
dist

CHANGELOG.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Change Log
2+
3+
## [1.1.0] 2021-03-19
4+
### Bug fixing
5+
- Rename `master` branch to `main`
6+
- To make a lot of our changes, we've followed the instructions from here (minus the `colors` and `font-sizes`): https://tailwindcss.com/docs/upgrading-to-v2
7+
- For the colors, the only change that we made, is the fact that we've added all Tailwind CSS colors to our `tailwind.config.js` files, and inside our product, all `{type}-gray-{number}` classes were renamed to `{type}-blueGray-{number}`
8+
- After that, we've changed `{type}-blueGray-{number}` to `{type}-blueGray-{lower-number}`, i.e. (`100` became `50`, `200` became `100`, ..., `900` became `800`)
9+
- You can achieve this, by search in your whole project for `blueGray-100` and replace it with `blueGray-50`
10+
- Then, you search in your whole project for `blueGray-200` and replace it with `blueGray-100`
11+
- Then, you search in your whole project for `blueGray-300` and replace it with `blueGray-200`
12+
- Then, you search in your whole project for `blueGray-400` and replace it with `blueGray-300`
13+
- Then, you search in your whole project for `blueGray-500` and replace it with `blueGray-400`
14+
- Then, you search in your whole project for `blueGray-600` and replace it with `blueGray-500`
15+
- Then, you search in your whole project for `blueGray-700` and replace it with `blueGray-600`
16+
- Then, you search in your whole project for `blueGray-800` and replace it with `blueGray-700`
17+
- Then, you search in your whole project for `blueGray-900` and replace it with `blueGray-800`
18+
- For the colors, the only change that we made, is the fact that we've added all Tailwind CSS colors to our `tailwind.config.js` files, and inside our product, all `{type}-blue-{number}` classes were renamed to `{type}-lightBlue-{number}`
19+
- For the colors, the only change that we made, is the fact that we've added all Tailwind CSS colors to our `tailwind.config.js` files, and inside our product, all `{type}-green-{number}` classes were renamed to `{type}-emerald-{number}`
20+
- `lg:bg-transparent` is not working anymore, so we've changed it with `lg:bg-opacity-0`
21+
- https://github.com/creativetimofficial/notus-angular/issues/4
22+
- https://github.com/creativetimofficial/notus-js/issues/4
23+
- https://github.com/creativetimofficial/notus-js/pull/5
24+
- https://github.com/creativetimofficial/notus-js/pull/6
25+
- https://github.com/creativetimofficial/notus-nextjs/issues/6
26+
- https://github.com/creativetimofficial/notus-nextjs/issues/7
27+
- https://github.com/creativetimofficial/notus-nextjs/issues/8
28+
- https://github.com/creativetimofficial/notus-react/issues/3
29+
- https://github.com/creativetimofficial/notus-svelte/issues/3
30+
- https://github.com/creativetimofficial/notus-svelte/issues/6
31+
- https://github.com/creativetimofficial/vue-notus/pull/4/
32+
### Major style changes
33+
- The upgrade of Tailwind CSS from version 1 to version 2, will cause multiple style changes, check them out on the official Tailwind CSS websites:
34+
- https://blog.tailwindcss.com/tailwindcss-v2
35+
- https://tailwindcss.com/
36+
- https://tailwindcss.com/docs/upgrading-to-v2
37+
### Deleted components
38+
### Added components
39+
### Deleted dependencies
40+
- `@tailwindcss/custom-forms`
41+
- `babel-eslint` (updated to `@babel/eslint-parser` and `@babel/core`)
42+
### Added dependencies
43+
- `@tailwindcss/forms` (replaces `@tailwindcss/custom-forms`)
44+
- `autoprefixer`
45+
- `postcss`
46+
- `@babel/core` (instead of `babel-eslint`)
47+
- `@babel/eslint-parser` (instead of `babel-eslint`)
48+
- `@vue/compiler-sfc`
49+
### Updated dependencies
50+
```
51+
@fortawesome/fontawesome-free 5.14.0 → 5.15.3
52+
@popperjs/core 2.5.1 → 2.9.1
53+
chart.js 2.9.3 → 2.9.4
54+
core-js 3.6.5 → 3.9.1
55+
tailwindcss 1.8.10 → 2.0.4
56+
vue 2.6.12 → 3.0.7
57+
vue-router 3.4.3 → 4.0.5
58+
@vue/cli-plugin-babel 4.5.6 → 5.0.0-alpha.7
59+
@vue/cli-plugin-eslint 4.5.6 → 5.0.0-alpha.7
60+
@vue/cli-service 4.5.6 → 5.0.0-alpha.7
61+
eslint 6.8.0 → 7.22.0
62+
eslint-plugin-vue 6.2.2 → 7.7.0
63+
```
64+
### Warning
65+
_On a clean install there may be some warnings from request, chokidar, fsevents - they come from node_modules, and they do not affect the product at all._
66+
_The following warning will show when doing a clean install `npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.`, however it does not affect in any way the product._
67+
68+
## [1.0.0] 2020-09-29
69+
### Original Release
70+
- Started project from [Tailwind Starter Kit by Creative Tim](https://www.creative-tim.com/learning-lab/tailwind-starter-kit/presentation?ref=vn-changelog)
71+
- Added design from Tailwind Starter Kit by Creative Tim

ISSUE_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!--
2+
IMPORTANT: Please use the following link to create a new issue:
3+
4+
https://www.creative-tim.com/new-issue/vue-notus?ref=vn-new-issue
5+
6+
**If your issue was not created using the app above, it will be closed immediately.**
7+
-->
8+
9+
<!--
10+
Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
11+
👉 https://www.creative-tim.com/bundles?ref=vn-new-issue
12+
👉 https://www.creative-tim.com?ref=vn-new-issue
13+
-->

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Creative Tim (https://www.creative-tim.com?ref=vn-license)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@vue/cli-plugin-babel/preset"],
3+
};

0 commit comments

Comments
 (0)