8000 [pull] master from CareyWang:master by pull[bot] · Pull Request #3 · moeloli/sub-web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[pull] master from CareyWang:master #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 67 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
537a923
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 11, 2021
43cfa51
Merge pull request #69 from CareyWang/dependabot/npm_and_yarn/path-pa…
CareyWang Sep 7, 2021
004a89c
Bump url-parse from 1.5.1 to 1.5.3
dependabot[bot] Sep 7, 2021
a27c292
Bump color-string from 1.5.4 to 1.6.0
dependabot[bot] Sep 7, 2021
38bc9c9
Merge pull request #73 from CareyWang/dependabot/npm_and_yarn/url-par…
CareyWang Sep 7, 2021
f3a997d
Merge pull request #74 from CareyWang/dependabot/npm_and_yarn/color-s…
CareyWang Sep 7, 2021
b8e34a6
Add pwa support
SleepyHeeead Nov 12, 2021
a6aacca
migrate to Dart Sass
zhongfly Nov 17, 2021
34bef0c
Merge pull request #78 from zhongfly/upstream
CareyWang Jan 11, 2022
e44116c
Add scv option
SleepyHeeead Jan 12, 2022
a81f2dd
Optimize config upload
SleepyHeeead Jan 15, 2022
a58619d
Bump nanoid from 3.1.30 to 3.2.0
dependabot[bot] Jan 22, 2022
7df5a6a
Bump follow-redirects from 1.14.5 to 1.14.8
dependabot[bot] Feb 13, 2022
7efa828
Merge pull request #96 from CareyWang/dependabot/npm_and_yarn/follow-…
CareyWang Feb 14, 2022
940ba27
Bump url-parse from 1.5.3 to 1.5.7
dependabot[bot] Feb 18, 2022
5d3f68a
Merge pull request #98 from CareyWang/dependabot/npm_and_yarn/url-par…
CareyWang Feb 19, 2022
855be51
Merge pull request #91 from CareyWang/dependabot/npm_and_yarn/nanoid-…
CareyWang Feb 19, 2022
68b9b92
Update build.yml
CareyWang Feb 19, 2022
8ad3739
Bump url-parse from 1.5.7 to 1.5.10
dependabot[bot] Feb 28, 2022
b29acdd
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 26, 2022
480844a
Merge pull request #103 from CareyWang/dependabot/npm_and_yarn/minimi…
CareyWang Mar 26, 2022
8358af3
Merge pull request #101 from CareyWang/dependabot/npm_and_yarn/url-pa…
CareyWang Mar 26, 2022
63f3e02
Bump async from 2.6.3 to 2.6.4
dependabot[bot] Apr 29, 2022
a1f46c0
Bump eventsource from 1.1.0 to 1.1.1
dependabot[bot] Jun 1, 2022
945a8e7
remove config option
SleepyHeeead Jun 5, 2022
3637dc5
Bump terser from 4.8.0 to 4.8.1
dependabot[bot] Jul 20, 2022
618cf3f
Update Subconverter.vue
CareyWang Sep 1, 2022
9dac342
Merge pull request #113 from CareyWang/dependabot/npm_and_yarn/events…
CareyWang Sep 1, 2022
45edf5c
Merge pull request #115 from CareyWang/dependabot/npm_and_yarn/terser…
CareyWang Sep 1, 2022
417ea1d
Merge pull request #110 from CareyWang/dependabot/npm_and_yarn/async-…
CareyWang Sep 1, 2022
c81481c
可以从旧订阅信息中解析信息,回显页面中去
Sowevo Nov 9, 2022
65e559e
Update Dockerfile
CareyWang Nov 10, 2022
632bed8
Merge pull request #122 from Sowevo/master
CareyWang Nov 10, 2022
e7cf0c7
surge的版本的解析
Sowevo Nov 10, 2022
71e5341
Merge pull request #123 from Sowevo/master
CareyWang Nov 10, 2022
0fc330d
Add: docker build and push action
SleepyHeeead Apr 28, 2023
e6127c4
Update dependencies
SleepyHeeead Apr 28, 2023
19c529e
Fix: node version
SleepyHeeead Apr 28, 2023
ed6bc50
Update README.md
CareyWang Apr 28, 2023
f297573
update: dependencies
SleepyHeeead Jun 16, 2023
42bb825
add support analyze short url
youshandefeiyang Jul 1, 2023
899d05a
fix: config upload
SleepyHeeead Sep 12, 2023
0870dc4
Merge pull request #140 from youshandefeiyang/master
CareyWang Sep 14, 2023
42063f9
optimize: url parser
SleepyHeeead Sep 14, 2023
b71f372
Update .env
CareyWang Oct 8, 2023
0effaff
Bump @babel/traverse from 7.22.5 to 7.23.2
dependabot[bot] Oct 19, 2023
9a488d3
Bump browserify-sign from 4.2.1 to 4.2.2
dependabot[bot] Oct 27, 2023
98a127b
Merge pull request #150 from CareyWang/dependabot/npm_and_yarn/browse…
CareyWang Oct 27, 2023
96545dc
Bump semver from 5.7.1 to 5.7.2
dependabot[bot] Oct 27, 2023
adba044
Bump word-wrap from 1.2.3 to 1.2.5
dependabot[bot] Oct 27, 2023
7479615
Merge pull request #152 from CareyWang/dependabot/npm_and_yarn/word-w…
CareyWang Oct 27, 2023
c412a02
Merge pull request #151 from CareyWang/dependabot/npm_and_yarn/semver…
CareyWang Oct 27, 2023
918a92a
Merge pull request #149 from CareyWang/dependabot/npm_and_yarn/babel/…
CareyWang Oct 27, 2023
e06b3ed
Update index.html
CareyWang Jan 9, 2024
6428d8a
Update Subconverter.vue
CareyWang Mar 29, 2024
42092c2
Support for more client types.
CareyWang Apr 8, 2024
bf82d18
bugfix
CareyWang Apr 8, 2024
57b62a6
Update Subconverter.vue
CareyWang Apr 26, 2024
4af935f
Fixed compatibility bugs
szkzn Jun 26, 2024
e538e52
Keep style unified
szkzn Jun 26, 2024
0a130fc
Merge pull request #174 from szkzn/Fix-default-null-value
CareyWang Jun 27, 2024
75b8ce7
support expand option
SleepyHeeead Jun 27, 2024
2c6b34a
upgrade dependencies
SleepyHeeead Jun 27, 2024
d292ce0
Support for adding customized conversion parameters
VMatrices Jul 2, 2024
c47bbab
Merge pull request #175 from VMatrices/master
CareyWang Aug 7, 2024
7e8b4e5
Upgrade nodejs version 16 to 20
SleepyHeeead Jan 8, 2025
a8788c1
Update README.md
CareyWang Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
VUE_APP_PROJECT = "https://github.com/CareyWang/sub-web"

VUE_APP_BOT_LINK = "https://t.me/CareyWong_bot"
VUE_APP_BOT_LINK = "https://t.me/subconverter_discuss"

VUE_APP_BACKEND_RELEASE = "https://github.com/tindy2013/subconverter/releases"
VUE_APP_BACKEND_RELEASE = "https://github.com/tindy2013/subconverter/actions"

VUE_APP_SUBCONVERTER_REMOTE_CONFIG = "https://raw.githubusercontent.com/tindy2013/subconverter/master/base/config/example_external_config.ini"

VUE_APP_SUBCONVERTER_DOC_ADVANCED = "https://github.com/tindy2013/subconverter/blob/master/README-cn.md#%E8%BF%9B%E9%98%B6%E9%93%BE%E6%8E%A5"

# API 后端
VUE_APP_SUBCONVERTER_DEFAULT_BACKEND = "https://api.wcc.best"

# 短链接后端
VUE_APP_MYURLS_DEFAULT_BACKEND = "https://suo.yt"
VUE_APP_MYURLS_API = "https://suo.yt/short"

# 文本托管后端
VUE_APP_CONFIG_UPLOAD_BACKEND = "https://api.wcc.best"
VUE_APP_CONFIG_UPLOAD_API = "https://oss.wcc.best/upload"

# 页面配置
VUE_APP_USE_STORAGE = true
Expand Down
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ module.exports = {
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'semi': 0
'semi': 0,
'vue/multi-word-component-names': 'off'
},
parserOptions: {
parser: 'babel-eslint'
parser: '@babel/eslint-parser'
}
}
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build

on:
push:
branches: [ master ]
branches: [ master, dev ]

jobs:

Expand All @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [10.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -26,8 +26,9 @@ jobs:
run: |
yarn install
yarn build

- name: Upload
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
31 changes: 31 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Push Multi-Arch Docker Image

on:
push:
branches:
- master

jobs:
build-and-push:
runs-on: ubuntu-latest< 6DB6 /span>

steps:
- name: Check out repository
uses: actions/checkout@master

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: careywong/subweb:latest
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# ---- Dependencies ----
FROM node:12-alpine AS dependencies
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json ./
COPY . .
RUN yarn install

# ---- Build ----
FROM dependencies AS build
WORKDIR /app
COPY . /app
RUN yarn build

FROM nginx:1.16-alpine
FROM nginx:1.24-alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD [ "nginx", "-g", "daemon off;" ]
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ docker run -d -p 58080:80 --restart always --name subweb careywong/subweb:latest
注:每次修改代码,你都需要重新执行 docker build 来执行打包操作。

```shell
docker build -t subweb-local:latest .
docker -v
Docker version 23.0.4, build f480fb1

docker build -t subweb-local:latest .
docker run -d -p 58080:80 --restart always --name subweb subweb-local:latest
```

Expand All @@ -42,7 +44,10 @@ docker run -d -p 58080:80 --restart always --name subweb subweb-local:latest

```shell
node -v
v20.xx.x

yarn -v
1.22.22
```

## Install
Expand Down Expand Up @@ -98,7 +103,6 @@ server {

- [tindy2013/subconverter](https://github.com/tindy2013/subconverter)
- [CareyWang/MyUrls](https://github.com/CareyWang/MyUrls)
- [CareyWang/bitly](https://github.com/CareyWang/bitly)

## Contributing

Expand Down
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "sub-web",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
Expand All @@ -19,19 +22,20 @@
"vue-router": "^3.5.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.13",
"@vue/cli-plugin-eslint": "^4.5.13",
"@vue/cli-plugin-pwa": "~4.5.0",
"@vue/cli-plugin-router": "^4.5.13",
"@vue/cli-service": "^4.5.13",
"babel-eslint": "^10.0.3",
"@babel/core": "^7.26.0",
"@babel/eslint-parser": "^7.25.9",
"@vue/cli-plugin-babel": "5",
"@vue/cli-plugin-eslint": "5",
"@vue/cli-plugin-pwa": "5",
"@vue/cli-plugin-router": "5",
"@vue/cli-service": "5",
"babel-plugin-component": "^1.1.1",
"babel-plugin-import": "^1.13.3",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.13.0",
"eslint": "8.56.0",
"eslint-plugin-vue": "9.17.0",
"sass": "^1.43.4",
"sass-loader": "^8.0.0",
"svg-sprite-loader": "^4.2.1",
"svg-sprite-loader": "6.0.11",
"vue-particles": "^1.0.9",
"vue-template-compiler": "^2.6.10"
}
Expand Down
3 changes: 1 addition & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="theme-color" content="#00142A">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>sub-web</title>
</head>
Expand All @@ -13,7 +14,5 @@
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->

<script async defer data-website-id="b1873884-fbbf-4397-9982-5c83d381d94c" src="https://analytics.ytt.yt/umami.js"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"short_name": "sub-web",
"name": "sub-web",
"icon": [
{
"src": "./img/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "./img/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "index.html",
"display": "standalone",
"background_color": "#002140",
"theme_color": "#002140"
}
2 changes: 1 addition & 1 deletion src/registerServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { register } from 'register-service-worker'

if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}service-worker.js`, {
register(`${process.env.BASE_URL}sub-web.js`, {
ready () {
console.log(
'App is being served from cache by a service worker.\n' +
Expand Down
Loading
0