byt-ui 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -74
- package/jsconfig.json +19 -19
- package/lib/byt-ui.common.js +182 -131
- package/lib/byt-ui.css +1 -1
- package/lib/byt-ui.umd.js +182 -131
- package/lib/byt-ui.umd.min.js +2 -2
- package/package.json +2 -2
- package/packages/common/modules/cookie.js +4 -4
- package/yarn-error.log +108 -0
package/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-10-18 12:37:03
|
|
5
|
-
* @LastEditTime: 2022-
|
|
5
|
+
* @LastEditTime: 2022-11-16 20:11:01
|
|
6
6
|
* @LastEditors: 王国火
|
|
7
7
|
*/
|
|
8
8
|
import Cookie from 'js-cookie'
|
|
9
9
|
import website from './website'
|
|
10
10
|
export const getCookie = (key, context) => {
|
|
11
|
-
const searchKey = `${website.key}
|
|
11
|
+
const searchKey = `${website.key}-${key}`
|
|
12
12
|
if (context && context.req) {
|
|
13
13
|
if (context.req.headers.cookie) {
|
|
14
14
|
const arr = context.req.headers.cookie.split(';')
|
|
@@ -25,9 +25,9 @@ export const getCookie = (key, context) => {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export const setCookie = (key, value, expires = 7, path = '/') => {
|
|
28
|
-
return Cookie.set(`${website.key}
|
|
28
|
+
return Cookie.set(`${website.key}-${key}`, value, { expires, path })
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export const removeCookie = (key, path = '/') => {
|
|
32
|
-
return Cookie.remove(key
|
|
32
|
+
return Cookie.remove(`${website.key}-${key}`, { path })
|
|
33
33
|
}
|
package/yarn-error.log
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Arguments:
|
|
2
|
+
C:\Program Files\nodejs\node.exe C:\Users\byt\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js login
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;D:\微信web开发者工具\dll;C:\Pro;ram Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\byt\AppData\Local\Microsoft\WindowsApps;;c:\program files\esafenet\cobra docguard client;C:\Users\byt\AppData\Local\Programs\Fiddler;F:\Microsoft VS Code\bin;C:\Users\byt\AppData\Roaming\npm
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.19
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
14.18.3
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
win32 x64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
Error: canceled
|
|
18
|
+
at Interface.<anonymous> (C:\Users\byt\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:137150:13)
|
|
19
|
+
at Interface.emit (events.js:400:28)
|
|
20
|
+
at Interface._ttyWrite (readline.js:1001:16)
|
|
21
|
+
at ReadStream.onkeypress (readline.js:265:10)
|
|
22
|
+
at ReadStream.emit (events.js:400:28)
|
|
23
|
+
at emitKeys (internal/readline/utils.js:358:14)
|
|
24
|
+
at emitKeys.next (<anonymous>)
|
|
25
|
+
at ReadStream.onData (readline.js:1270:36)
|
|
26
|
+
at ReadStream.emit (events.js:400:28)
|
|
27
|
+
at addChunk (internal/streams/readable.js:293:12)
|
|
28
|
+
|
|
29
|
+
npm manifest:
|
|
30
|
+
{
|
|
31
|
+
"name": "byt-ui",
|
|
32
|
+
"version": "0.0.16",
|
|
33
|
+
"private": false,
|
|
34
|
+
"description": "byt组件库",
|
|
35
|
+
"author": {
|
|
36
|
+
"name": "wgh"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"dev": "vue-cli-service serve",
|
|
40
|
+
"build": "vue-cli-service build",
|
|
41
|
+
"lint": "vue-cli-service lint",
|
|
42
|
+
"lib": "vue-cli-service build --target lib --name byt-ui --dest lib packages/index.js",
|
|
43
|
+
"styleguide": "vue-cli-service styleguidist",
|
|
44
|
+
"styleguide:build": "vue-cli-service styleguidist:build"
|
|
45
|
+
},
|
|
46
|
+
"main": "lib/byt-ui.umd.min.js",
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"core-js": "^3.8.3",
|
|
49
|
+
"element-ui": "^2.15.10",
|
|
50
|
+
"js-cookie": "^3.0.1",
|
|
51
|
+
"moment": "^2.29.4",
|
|
52
|
+
"vue": "^2.6.14",
|
|
53
|
+
"vxe-table": "^3.6.6",
|
|
54
|
+
"xe-utils": "^3.5.6"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@babel/core": "^7.12.16",
|
|
58
|
+
"@babel/eslint-parser": "^7.12.16",
|
|
59
|
+
"@babel/preset-env": "^7.19.4",
|
|
60
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
61
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
62
|
+
"@vue/cli-service": "~5.0.0",
|
|
63
|
+
"babel-plugin-component": "^1.1.1",
|
|
64
|
+
"babel-preset-env": "^1.7.0",
|
|
65
|
+
"eslint": "^7.32.0",
|
|
66
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
67
|
+
"node-sass": "4.14.1",
|
|
68
|
+
"sass-loader": "10.0.4",
|
|
69
|
+
"vue-cli-plugin-styleguidist": "~4.45.1",
|
|
70
|
+
"vue-template-compiler": "^2.6.14"
|
|
71
|
+
},
|
|
72
|
+
"eslintConfig": {
|
|
73
|
+
"root": true,
|
|
74
|
+
"env": {
|
|
75
|
+
"node": true
|
|
76
|
+
},
|
|
77
|
+
"extends": [
|
|
78
|
+
"plugin:vue/essential",
|
|
79
|
+
"eslint:recommended"
|
|
80
|
+
],
|
|
81
|
+
"parserOptions": {
|
|
82
|
+
"parser": "@babel/eslint-parser"
|
|
83
|
+
},
|
|
84
|
+
"rules": {}
|
|
85
|
+
},
|
|
86
|
+
"browserslist": [
|
|
87
|
+
"> 1%",
|
|
88
|
+
"last 2 versions",
|
|
89
|
+
"not dead"
|
|
90
|
+
],
|
|
91
|
+
"keywords": [
|
|
92
|
+
"byt",
|
|
93
|
+
"byt-ui",
|
|
94
|
+
"@byt",
|
|
95
|
+
"@byt/base"
|
|
96
|
+
],
|
|
97
|
+
"license": "MIT",
|
|
98
|
+
"publishConfig": {
|
|
99
|
+
"access": "public",
|
|
100
|
+
"registry": "https://registry.npmjs.org/"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
yarn manifest:
|
|
105
|
+
No manifest
|
|
106
|
+
|
|
107
|
+
Lockfile:
|
|
108
|
+
No lockfile
|