Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lhl77 committed Jul 31, 2021
1 parent 2bf964f commit 92551ed
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 1%
last 2 versions
20 changes: 20 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
VUE_APP_PROJECT = "https://github.com/lhl77/sub-web-glorified"

VUE_APP_BOT_LINK = "https://t.me/water777777"

VUE_APP_BACKEND_RELEASE = "https://github.com/lhl77/sub-web-glorified"

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

# API 后端,不用显示
#VUE_APP_SUBCONVERTER_DEFAULT_BACKEND = "https://api2.tsutsu.cc"

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

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

# 页面配置
VUE_APP_USE_STORAGE = true
VUE_APP_CACHE_TTL = 86400
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'semi': 0
},
parserOptions: {
parser: 'babel-eslint'
}
}
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
workflow_dispatch:
push:

jobs:

build:
name: Build
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Get dependencies and build
run: |
yarn install
yarn build
- name: Upload
uses: actions/upload-artifact@v1
with:
name: dist
path: dist/
- name: Push update to now-subconverter
if: ${{ github.ref == 'refs/heads/master' }}
uses: zzzze/webhook-trigger@master
with:
data: '{"ref":"master"}'
webhook_url: 'https://api.github.com/repos/zhongfly/now-subconverter/actions/workflows/sub-web.yml/dispatches'
options: '-H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ secrets.REPO_TOKEN }}"'
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
16 changes: 0 additions & 16 deletions README.md

This file was deleted.

3 changes: 3 additions & 0 deletions node/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
node_modules
npm-debug
5 changes: 5 additions & 0 deletions sub-web-services/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SUBWEB_PORT=58080

MYURLS_PORT=8002
MYURLS_DOMAIN=example.com
MYURLS_TTL=180

0 comments on commit 92551ed

Please sign in to comment.