Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
f7f23e84
Commit
f7f23e84
authored
Mar 06, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ready for prod
parent
5dd78259
Pipeline
#20485
passed with stages
in 5 minutes and 49 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
24 deletions
+77
-24
.gitlab-ci.yml
.gitlab-ci.yml
+5
-16
.gitmodules
.gitmodules
+0
-3
neos.config.json
neos.config.json
+6
-4
neos.config.prod.json
neos.config.prod.json
+65
-0
package.json
package.json
+1
-0
ygopro-database
ygopro-database
+0
-1
No files found.
.gitlab-ci.yml
View file @
f7f23e84
...
@@ -32,7 +32,9 @@ npm_build:
...
@@ -32,7 +32,9 @@ npm_build:
stage
:
build
stage
:
build
tags
:
tags
:
-
linux
-
linux
script
:
npm run build
script
:
-
mv neos.config.prod.json neos.config.json
-
npm run build:prod
artifacts
:
artifacts
:
paths
:
paths
:
-
dist
-
dist
...
@@ -46,18 +48,5 @@ deploy:
...
@@ -46,18 +48,5 @@ deploy:
dependencies
:
dependencies
:
-
npm_build
-
npm_build
script
:
script
:
-
sudo apt-get install rsync
-
mv neos-assets dist/
-
'
rsync
-atv
--progress
--human-readable
--delete
--exclude="neos-assets/"
dist/
kirayamato@8.142.104.5:$NEOS_DEPLOY_PATH'
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/neos
-
'
rsync
-atv
--progress
--human-readable
--delete
neos-assets/
kirayamato@8.142.104.5:$NEOS_DEPLOY_PATH/neos-assets'
-
'
rsync
-atv
--progress
--human-readable
--delete
ygopro-database
kirayamato@8.142.104.5:$NEOS_DEPLOY_PATH/ygopro-database'
before_script
:
-
'
command
-v
ssh-agent
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$NEOS_SSH_PRIVATE_KEY" | base64 -d)
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
-
chmod 700 ~/.ssh
.gitmodules
View file @
f7f23e84
[submodule "neos-protobuf"]
[submodule "neos-protobuf"]
path = neos-protobuf
path = neos-protobuf
url = https://code.mycard.moe/mycard/neos-protobuf.git
url = https://code.mycard.moe/mycard/neos-protobuf.git
[submodule "ygopro-database"]
path = ygopro-database
url = https://code.mycard.moe/mycard/ygopro-database.git
neos.config.json
View file @
f7f23e84
{
{
"version"
:
4948
,
"version"
:
4948
,
"servers"
:
[{
"servers"
:
[
"ip"
:
"koishi-r.momobako.com"
,
{
"port"
:
"7211"
"ip"
:
"koishi-r.momobako.com"
,
}],
"port"
:
"7211"
}
],
"assetsPath"
:
"/neos-assets"
,
"assetsPath"
:
"/neos-assets"
,
"cardImgUrl"
:
"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN"
,
"cardImgUrl"
:
"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN"
,
"cardsDbUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb"
,
"cardsDbUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb"
,
...
...
neos.config.prod.json
0 → 100644
View file @
f7f23e84
{
"version"
:
4948
,
"servers"
:
[
{
"ip"
:
"koishi-r.momobako.com"
,
"port"
:
"7211"
}
],
"assetsPath"
:
"https://cdn02.moecube.com:444/neos/neos-assets"
,
"cardImgUrl"
:
"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN"
,
"cardsDbUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb"
,
"ui"
:
{
"ground"
:
{
"width"
:
9.9
,
"height"
:
8
},
"card"
:
{
"transform"
:
{
"x"
:
0.8
,
"y"
:
1
,
"z"
:
0.05
},
"rotation"
:
{
"x"
:
1.55
,
"y"
:
0
,
"z"
:
0
},
"reverseRotation"
:
{
"x"
:
1.55
,
"y"
:
3.1
,
"z"
:
0
},
"defenceRotation"
:
{
"x"
:
1.55
,
"y"
:
1.55
,
"z"
:
0
},
"handRotation"
:
{
"x"
:
1
,
"y"
:
0
,
"z"
:
0
},
"handHoverScaling"
:
{
"x"
:
1.2
,
"y"
:
1.2
,
"z"
:
1
},
"floating"
:
0.02
},
"layout"
:
{
"header"
:
{
"height"
:
80
},
"content"
:
{
"height"
:
800
},
"sider"
:
{
"width"
:
300
},
"footer"
:
{
"height"
:
80
}
}
}
}
package.json
View file @
f7f23e84
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
"scripts"
:
{
"scripts"
:
{
"dev"
:
"vite"
,
"dev"
:
"vite"
,
"build"
:
"tsc && vite build && cp -r neos-assets dist/"
,
"build"
:
"tsc && vite build && cp -r neos-assets dist/"
,
"build:prod"
:
"tsc && vite build --base=https://cdn02.moecube.com:444/neos/"
,
"preview"
:
"vite preview"
,
"preview"
:
"vite preview"
,
"lint"
:
"eslint --ext .ts --ext .tsx src"
,
"lint"
:
"eslint --ext .ts --ext .tsx src"
,
"fmt"
:
"eslint --ext .ts --ext .tsx src --fix"
,
"fmt"
:
"eslint --ext .ts --ext .tsx src --fix"
,
...
...
ygopro-database
@
97dc1a6b
Subproject commit 97dc1a6bbb51d55a2cabb1524ea2aa39521cd26e
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment