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
be983f59
Commit
be983f59
authored
Oct 09, 2024
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup 408 lflist
parent
d58778dc
Pipeline
#30302
passed with stages
in 12 minutes and 10 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
neos.config.json
neos.config.json
+3
-0
neos.config.prod.json
neos.config.prod.json
+3
-0
src/api/forbiddens.ts
src/api/forbiddens.ts
+2
-6
src/ui/Layout/utils.ts
src/ui/Layout/utils.ts
+4
-2
No files found.
neos.config.json
View file @
be983f59
...
...
@@ -39,6 +39,9 @@
"lflist"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/lflist.conf"
,
"config"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release-v2.json"
},
"env408Resource"
:
{
"lflist"
:
"https://cdn02.moecube.com:444/cn-database/env408-zh-CN/expansions/lflist.conf"
},
"stringsUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/strings.conf"
,
"replayUrl"
:
"replay.neos.moe"
,
"loginUrl"
:
"https://accounts.moecube.com/signin"
,
...
...
neos.config.prod.json
View file @
be983f59
...
...
@@ -39,6 +39,9 @@
"lflist"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/lflist.conf"
,
"config"
:
"https://cdn02.moecube.com:444/ygopro-super-pre/data/test-release-v2.json"
},
"env408Resource"
:
{
"lflist"
:
"https://cdn02.moecube.com:444/cn-database/env408-zh-CN/expansions/lflist.conf"
},
"stringsUrl"
:
"https://cdn02.moecube.com:444/ygopro-database/zh-CN/strings.conf"
,
"replayUrl"
:
"replay.neos.moe"
,
"loginUrl"
:
"https://accounts.moecube.com/signin"
,
...
...
src/api/forbiddens.ts
View file @
be983f59
import
{
isNil
}
from
"
lodash-es
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
CardMeta
}
from
"
./cards
"
;
const
{
releaseResource
:
{
lflist
},
}
=
useConfig
();
class
Forbidden
{
private
data
:
Map
<
number
,
number
>
=
new
Map
<
number
,
number
>
();
public
time
:
string
=
"
?
"
;
public
async
init
():
Promise
<
void
>
{
public
async
init
(
lflist
:
string
):
Promise
<
void
>
{
const
text
=
await
(
await
fetch
(
lflist
)).
text
();
const
{
time
,
forbiddens
}
=
this
.
extractForbiddensFromText
(
text
);
this
.
time
=
time
;
...
...
@@ -87,3 +82,4 @@ class Forbidden {
}
export
const
forbidden
=
new
Forbidden
();
export
const
forbidden_408
=
new
Forbidden
();
src/ui/Layout/utils.ts
View file @
be983f59
...
...
@@ -3,6 +3,7 @@ import rustInit from "rust-src";
import
{
CookieKeys
,
forbidden
,
forbidden_408
,
getCookie
,
initStrings
,
initSuperPrerelease
,
...
...
@@ -12,7 +13,7 @@ import { useConfig } from "@/config";
import
{
useEnv
}
from
"
@/hook
"
;
import
sqliteMiddleWare
,
{
sqliteCmd
}
from
"
@/middleware/sqlite
"
;
import
{
accountStore
,
deckStore
,
initStore
,
type
User
}
from
"
@/stores
"
;
const
{
releaseResource
,
preReleaseResource
}
=
useConfig
();
const
{
releaseResource
,
preReleaseResource
,
env408Resource
}
=
useConfig
();
const
{
BASE_URL
}
=
useEnv
();
/** 加载ygodb */
...
...
@@ -55,7 +56,8 @@ export const initWASM = async () => {
/** 加载禁限卡表 */
export
const
initForbidden
=
async
()
=>
{
if
(
!
initStore
.
forbidden
)
{
await
forbidden
.
init
();
await
forbidden
.
init
(
releaseResource
.
lflist
);
await
forbidden_408
.
init
(
env408Resource
.
lflist
);
initStore
.
forbidden
=
true
;
}
};
...
...
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