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
ae2fdd3d
Commit
ae2fdd3d
authored
Oct 08, 2024
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor neos.config.json
parent
a7d6c103
Pipeline
#30257
failed with stages
in 22 minutes and 35 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
200 deletions
+99
-200
neos.config.json
neos.config.json
+48
-98
neos.config.prod.json
neos.config.prod.json
+48
-98
src/infra/stream.ts
src/infra/stream.ts
+0
-1
src/service/duel/unimplemented.ts
src/service/duel/unimplemented.ts
+3
-3
No files found.
neos.config.json
View file @
ae2fdd3d
{
"version"
:
4961
,
"servers"
:
[{
"servers"
:
[
{
"name"
:
"koishi"
,
"ip"
:
"koishi.momobako.com"
,
"port"
:
"7211"
...
...
@@ -22,11 +23,15 @@
}
],
"assetsPath"
:
"/neos-assets"
,
"releaseImgUrl"
:
"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN"
,
"preReleaseImgUrl"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/pics"
,
"releaseDbUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb"
,
"preReleaseDbUrl"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release.cdb"
,
"preReleaseConfig"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release-v2.json"
,
"releaseResource"
:
{
"img"
:
"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN"
,
"cdb"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb"
},
"preReleaseResource"
:
{
"img"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/pics"
,
"cdb"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release.cdb"
,
"config"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release-v2.json"
},
"stringsUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/strings.conf"
,
"lflistUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/lflist.conf"
,
"replayUrl"
:
"replay.neos.moe"
,
...
...
@@ -38,65 +43,10 @@
"userApi"
:
"https://sapi.moecube.com:444/accounts/users/{username}.json"
,
"mdproServer"
:
"https://rarnu.xyz:38443"
,
"agentServer"
:
"https://sapi.moecube.com:444/neos-ai-agent"
,
"streamInterval"
:
20
,
"startDelay"
:
1000
,
"ui"
:
{
"hint"
:
{
"maxCount"
:
1
}
},
"unimplementedWhiteList"
:
[
1
,
6
,
7
,
34
,
54
,
55
,
56
,
60
,
61
,
62
,
63
,
64
,
65
,
70
,
71
,
72
,
73
,
74
,
75
,
76
,
80
,
81
,
83
,
93
,
95
,
96
,
97
,
101
,
102
,
110
,
111
,
112
,
113
,
114
,
120
,
121
,
122
,
123
,
130
,
131
,
132
,
133
,
160
,
161
,
163
,
164
,
165
,
170
,
180
,
230
,
231
,
236
]
}
}
neos.config.prod.json
View file @
ae2fdd3d
{
"version"
:
4961
,
"servers"
:
[{
"servers"
:
[
{
"name"
:
"koishi"
,
"ip"
:
"koishi.momobako.com"
,
"port"
:
"7211"
...
...
@@ -22,11 +23,15 @@
}
],
"assetsPath"
:
"/neos-assets"
,
"releaseImgUrl"
:
"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN"
,
"preReleaseImgUrl"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/pics"
,
"releaseDbUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb"
,
"preReleaseDbUrl"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release.cdb"
,
"preReleaseConfig"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release-v2.json"
,
"releaseResource"
:
{
"img"
:
"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN"
,
"cdb"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb"
},
"preReleaseResource"
:
{
"img"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/pics"
,
"cdb"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release.cdb"
,
"config"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release-v2.json"
},
"stringsUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/strings.conf"
,
"lflistUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/lflist.conf"
,
"replayUrl"
:
"replay.neos.moe"
,
...
...
@@ -38,65 +43,10 @@
"userApi"
:
"https://sapi.moecube.com:444/accounts/users/{username}.json"
,
"mdproServer"
:
"https://rarnu.xyz:38443"
,
"agentServer"
:
"https://sapi.moecube.com:444/neos-ai-agent"
,
"streamInterval"
:
20
,
"startDelay"
:
1000
,
"ui"
:
{
"hint"
:
{
"maxCount"
:
1
}
},
"unimplementedWhiteList"
:
[
1
,
6
,
7
,
34
,
54
,
55
,
56
,
60
,
61
,
62
,
63
,
64
,
65
,
70
,
71
,
72
,
73
,
74
,
75
,
76
,
80
,
81
,
83
,
93
,
95
,
96
,
97
,
101
,
102
,
110
,
111
,
112
,
113
,
114
,
120
,
121
,
122
,
123
,
130
,
131
,
132
,
133
,
160
,
161
,
163
,
164
,
165
,
170
,
180
,
230
,
231
,
236
]
}
}
src/infra/stream.ts
View file @
ae2fdd3d
...
...
@@ -69,7 +69,6 @@ export class WebSocketStream {
// but now it seems that we don't need wait any more,
// so comment the following line and check if it's ok without it.
//
// await sleep(useConfig().streamInterval);
await
onMessage
(
value
);
}
else
{
console
.
warn
(
"
value from ReadableStream is undefined!
"
);
...
...
src/service/duel/unimplemented.ts
View file @
ae2fdd3d
import
{
ygopro
}
from
"
@/api
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
Container
}
from
"
@/container
"
;
const
NeosConfig
=
useConfig
();
const
UNIMPLEMENTED_WHITE_LIST
=
[
1
,
6
,
7
,
34
,
54
,
55
,
56
,
60
,
61
,
62
,
63
,
64
,
65
,
70
,
71
,
72
,
73
,
74
,
75
,
76
,
80
,
81
,
83
,
93
,
95
,
96
,
97
,
101
,
102
,
110
,
111
,
112
,
113
,
114
,
120
,
121
,
122
,
123
,
130
,
131
,
132
,
133
,
160
,
161
,
163
,
164
,
165
,
170
,
180
,
230
,
231
,
236
];
export
default
(
container
:
Container
,
unimplemented
:
ygopro
.
StocGameMessage
.
MsgUnimplemented
,
)
=>
{
if
(
!
NeosConfig
.
unimplementedWhiteList
.
includes
(
unimplemented
.
command
))
{
if
(
!
UNIMPLEMENTED_WHITE_LIST
.
includes
(
unimplemented
.
command
))
{
container
.
context
.
matStore
.
unimplemented
=
unimplemented
.
command
;
}
};
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