Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fj-captcha-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
郑磊
fj-captcha-service
Commits
fca3118a
Commit
fca3118a
authored
May 17, 2024
by
郑磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改依赖库为git地址
parent
e44ac386
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
15 deletions
+12
-15
package-lock.json
web/package-lock.json
+8
-0
package.json
web/package.json
+1
-0
App.vue
web/src/App.vue
+1
-1
main.ts
web/src/main.ts
+1
-0
tsconfig.json
web/tsconfig.json
+1
-5
vite.config.ts
web/vite.config.ts
+0
-9
No files found.
web/package-lock.json
View file @
fca3118a
...
...
@@ -9,6 +9,7 @@
"version"
:
"0.0.0"
,
"dependencies"
:
{
"core-js-pure"
:
"^3.37.1"
,
"fj-captcha-vue"
:
"git+http://gitlab.3yakj.com/crystalray/fj-captcha-vue.git"
,
"vue"
:
"^3.4.21"
},
"devDependencies"
:
{
...
...
@@ -902,6 +903,13 @@
"resolved"
:
"https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz"
,
"integrity"
:
"sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
},
"node_modules/fj-captcha-vue"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"git+http://gitlab.3yakj.com/crystalray/fj-captcha-vue.git#d4dfd31e0f4286ba6405d2df461ea33d94c5d067"
,
"peerDependencies"
:
{
"vue"
:
"^3.0.0"
}
},
"node_modules/fsevents"
:
{
"version"
:
"2.3.3"
,
"resolved"
:
"https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz"
,
...
...
web/package.json
View file @
fca3118a
...
...
@@ -10,6 +10,7 @@
},
"dependencies"
:
{
"core-js-pure"
:
"^3.37.1"
,
"fj-captcha-vue"
:
"git+http://gitlab.3yakj.com/crystalray/fj-captcha-vue.git"
,
"vue"
:
"^3.4.21"
},
"devDependencies"
:
{
...
...
web/src/App.vue
View file @
fca3118a
<
script
setup
lang=
"ts"
>
import
URL
from
'core-js-pure/features/url'
import
{
Captcha
}
from
'fj-captcha-
web
'
import
{
Captcha
}
from
'fj-captcha-
vue
'
const
requestCaptchaDataUrl
=
import
.
meta
.
env
.
VITE_REQUEST_CAPTCHA_URL
const
validCaptchaUrl
=
import
.
meta
.
env
.
VITE_VALID_CAPTCHA_URL
...
...
web/src/main.ts
View file @
fca3118a
import
{
createApp
}
from
'vue'
import
'./style.css'
import
'fj-captcha-vue/esm/style.css'
import
App
from
'./App.vue'
createApp
(
App
).
mount
(
'#app'
)
web/tsconfig.json
View file @
fca3118a
...
...
@@ -18,11 +18,7 @@
"strict"
:
true
,
"noUnusedLocals"
:
true
,
"noUnusedParameters"
:
true
,
"noFallthroughCasesInSwitch"
:
true
,
"baseUrl"
:
""
,
"paths"
:
{
"fj-captcha-web"
:
[
"../vue/src"
]
}
"noFallthroughCasesInSwitch"
:
true
},
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
,
"src/**/*.vue"
],
"references"
:
[{
"path"
:
"./tsconfig.node.json"
}]
...
...
web/vite.config.ts
View file @
fca3118a
import
vue
from
'@vitejs/plugin-vue'
import
{
resolve
}
from
'node:path'
import
{
defineConfig
}
from
'vite'
// https://vitejs.dev/config/
export
default
defineConfig
({
resolve
:
{
alias
:
[
{
find
:
/^fj-captcha-web$/
,
replacement
:
resolve
(
__dirname
,
'../vue/src'
),
},
],
},
plugins
:
[
vue
()],
server
:
{
host
:
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