@cgboiler/biz-mobile 0.1.0 → 1.1.0
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/es/index.d.ts +3 -3
- package/es/index.js +5 -5
- package/es/{project-list/ProjectList.js → project-select/ProjectSelect.js} +1 -1
- package/es/project-select/index.d.ts +3 -0
- package/es/project-select/index.js +5 -0
- package/es/{project-list → project-select}/types.d.ts +1 -1
- package/es/{project-list → project-select}/useApi.js +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +5 -5
- package/lib/{project-list/ProjectList.js → project-select/ProjectSelect.js} +1 -1
- package/lib/project-select/index.d.ts +3 -0
- package/lib/{project-list → project-select}/index.js +2 -2
- package/lib/{project-list → project-select}/types.d.ts +1 -1
- package/lib/{project-list → project-select}/useApi.js +2 -2
- package/package.json +18 -17
- package/es/project-list/index.d.ts +0 -3
- package/es/project-list/index.js +0 -5
- package/es/utils/useFetch.d.ts +0 -5
- package/es/utils/useFetch.js +0 -72
- package/lib/project-list/index.d.ts +0 -3
- package/lib/utils/useFetch.d.ts +0 -5
- package/lib/utils/useFetch.js +0 -89
- /package/es/{project-list/ProjectList.d.ts → project-select/ProjectSelect.d.ts} +0 -0
- /package/es/{project-list → project-select}/_atomic.css +0 -0
- /package/es/{project-list → project-select}/index.css +0 -0
- /package/es/{project-list → project-select}/index.less +0 -0
- /package/es/{project-list → project-select}/style/index.d.ts +0 -0
- /package/es/{project-list → project-select}/style/index.js +0 -0
- /package/es/{project-list → project-select}/style/less.d.ts +0 -0
- /package/es/{project-list → project-select}/style/less.js +0 -0
- /package/es/{project-list → project-select}/types.js +0 -0
- /package/es/{project-list → project-select}/useApi.d.ts +0 -0
- /package/lib/{project-list/ProjectList.d.ts → project-select/ProjectSelect.d.ts} +0 -0
- /package/lib/{project-list → project-select}/_atomic.css +0 -0
- /package/lib/{project-list → project-select}/index.css +0 -0
- /package/lib/{project-list → project-select}/index.less +0 -0
- /package/lib/{project-list → project-select}/style/index.d.ts +0 -0
- /package/lib/{project-list → project-select}/style/index.js +0 -0
- /package/lib/{project-list → project-select}/style/less.d.ts +0 -0
- /package/lib/{project-list → project-select}/style/less.js +0 -0
- /package/lib/{project-list → project-select}/types.js +0 -0
- /package/lib/{project-list → project-select}/useApi.d.ts +0 -0
package/es/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from "./button";
|
|
2
|
-
export * from "./project-
|
|
2
|
+
export * from "./project-select";
|
|
3
3
|
declare namespace _default {
|
|
4
4
|
export { install };
|
|
5
5
|
export { version };
|
|
6
6
|
}
|
|
7
7
|
export default _default;
|
|
8
8
|
export function install(app: any): void;
|
|
9
|
-
export const version: "0.0
|
|
10
|
-
export { Button,
|
|
9
|
+
export const version: "1.0.0";
|
|
10
|
+
export { Button, ProjectSelect };
|
package/es/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button } from "./button";
|
|
2
|
-
import {
|
|
3
|
-
const version = "0.0
|
|
2
|
+
import { ProjectSelect } from "./project-select";
|
|
3
|
+
const version = "1.0.0";
|
|
4
4
|
function install(app) {
|
|
5
5
|
const components = [
|
|
6
6
|
Button,
|
|
7
|
-
|
|
7
|
+
ProjectSelect
|
|
8
8
|
];
|
|
9
9
|
components.forEach((item) => {
|
|
10
10
|
if (item.install) {
|
|
@@ -15,14 +15,14 @@ function install(app) {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
export * from "./button";
|
|
18
|
-
export * from "./project-
|
|
18
|
+
export * from "./project-select";
|
|
19
19
|
var stdin_default = {
|
|
20
20
|
install,
|
|
21
21
|
version
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
24
|
Button,
|
|
25
|
-
|
|
25
|
+
ProjectSelect,
|
|
26
26
|
stdin_default as default,
|
|
27
27
|
install,
|
|
28
28
|
version
|
|
@@ -6,7 +6,7 @@ import { projectListProps } from "./types";
|
|
|
6
6
|
import { useApi } from "./useApi";
|
|
7
7
|
import "./index.css";
|
|
8
8
|
var stdin_default = defineComponent({
|
|
9
|
-
name: "
|
|
9
|
+
name: "ProjectSelect",
|
|
10
10
|
props: projectListProps,
|
|
11
11
|
emits: ["update:show", "update:modelValue"],
|
|
12
12
|
setup(props, {
|
|
@@ -19,7 +19,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
import { ref } from "vue";
|
|
22
|
-
import { useFetch } from "
|
|
22
|
+
import { useFetch } from "@cgboiler/core";
|
|
23
23
|
const useApi = () => {
|
|
24
24
|
const projectList = ref([]);
|
|
25
25
|
const getProjectList = () => __async(void 0, null, function* () {
|
package/lib/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from "./button";
|
|
2
|
-
export * from "./project-
|
|
2
|
+
export * from "./project-select";
|
|
3
3
|
declare namespace _default {
|
|
4
4
|
export { install };
|
|
5
5
|
export { version };
|
|
6
6
|
}
|
|
7
7
|
export default _default;
|
|
8
8
|
export function install(app: any): void;
|
|
9
|
-
export const version: "0.0
|
|
10
|
-
export { Button,
|
|
9
|
+
export const version: "1.0.0";
|
|
10
|
+
export { Button, ProjectSelect };
|
package/lib/index.js
CHANGED
|
@@ -19,21 +19,21 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var stdin_exports = {};
|
|
20
20
|
__export(stdin_exports, {
|
|
21
21
|
Button: () => import_button.Button,
|
|
22
|
-
|
|
22
|
+
ProjectSelect: () => import_project_select.ProjectSelect,
|
|
23
23
|
default: () => stdin_default,
|
|
24
24
|
install: () => install,
|
|
25
25
|
version: () => version
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(stdin_exports);
|
|
28
28
|
var import_button = require("./button");
|
|
29
|
-
var
|
|
29
|
+
var import_project_select = require("./project-select");
|
|
30
30
|
__reExport(stdin_exports, require("./button"), module.exports);
|
|
31
|
-
__reExport(stdin_exports, require("./project-
|
|
32
|
-
const version = "0.0
|
|
31
|
+
__reExport(stdin_exports, require("./project-select"), module.exports);
|
|
32
|
+
const version = "1.0.0";
|
|
33
33
|
function install(app) {
|
|
34
34
|
const components = [
|
|
35
35
|
import_button.Button,
|
|
36
|
-
|
|
36
|
+
import_project_select.ProjectSelect
|
|
37
37
|
];
|
|
38
38
|
components.forEach((item) => {
|
|
39
39
|
if (item.install) {
|
|
@@ -28,7 +28,7 @@ var import_types = require("./types");
|
|
|
28
28
|
var import_useApi = require("./useApi");
|
|
29
29
|
var import_index = require("./index.css");
|
|
30
30
|
var stdin_default = (0, import_vue2.defineComponent)({
|
|
31
|
-
name: "
|
|
31
|
+
name: "ProjectSelect",
|
|
32
32
|
props: import_types.projectListProps,
|
|
33
33
|
emits: ["update:show", "update:modelValue"],
|
|
34
34
|
setup(props, {
|
|
@@ -30,5 +30,5 @@ __export(stdin_exports, {
|
|
|
30
30
|
default: () => stdin_default
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(stdin_exports);
|
|
33
|
-
var
|
|
34
|
-
var stdin_default =
|
|
33
|
+
var import_ProjectSelect = __toESM(require("./ProjectSelect"));
|
|
34
|
+
var stdin_default = import_ProjectSelect.default;
|
|
@@ -41,11 +41,11 @@ __export(stdin_exports, {
|
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(stdin_exports);
|
|
43
43
|
var import_vue = require("vue");
|
|
44
|
-
var
|
|
44
|
+
var import_core = require("@cgboiler/core");
|
|
45
45
|
const useApi = () => {
|
|
46
46
|
const projectList = (0, import_vue.ref)([]);
|
|
47
47
|
const getProjectList = () => __async(void 0, null, function* () {
|
|
48
|
-
const res = yield (0,
|
|
48
|
+
const res = yield (0, import_core.useFetch)(
|
|
49
49
|
"https://vx.cgboiler.com/v1/note/projects",
|
|
50
50
|
{
|
|
51
51
|
method: "GET"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgboiler/biz-mobile",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -10,18 +10,6 @@
|
|
|
10
10
|
"lib",
|
|
11
11
|
"es"
|
|
12
12
|
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"dev": "cg-cli dev",
|
|
15
|
-
"test": "cg-cli test",
|
|
16
|
-
"lint": "cg-cli lint",
|
|
17
|
-
"build": "cg-cli build",
|
|
18
|
-
"build-npm": "cg-cli build",
|
|
19
|
-
"release": "cg-cli release",
|
|
20
|
-
"test:coverage": "open test/coverage/index.html",
|
|
21
|
-
"build-site": "cg-cli build-site",
|
|
22
|
-
"changelog": "cg-cli changelog",
|
|
23
|
-
"duero-config": "echo 'Do not need duero config'"
|
|
24
|
-
},
|
|
25
13
|
"author": "dongcg",
|
|
26
14
|
"publishConfig": {
|
|
27
15
|
"access": "public",
|
|
@@ -41,18 +29,31 @@
|
|
|
41
29
|
"vue": "^3.2.26"
|
|
42
30
|
},
|
|
43
31
|
"devDependencies": {
|
|
44
|
-
"@cgboiler/cli": "workspace:*",
|
|
45
32
|
"@types/node": "^22.9.3",
|
|
46
33
|
"@vue/test-utils": "^2.4.6",
|
|
47
34
|
"prettier": "^2.4.1",
|
|
48
35
|
"typescript": "^5.6.3",
|
|
49
|
-
"vue": "^3.5.13"
|
|
36
|
+
"vue": "^3.5.13",
|
|
37
|
+
"@cgboiler/cli": "0.0.1-beta1"
|
|
50
38
|
},
|
|
51
39
|
"browserslist": [
|
|
52
40
|
"Chrome >= 51",
|
|
53
41
|
"iOS >= 10"
|
|
54
42
|
],
|
|
55
43
|
"dependencies": {
|
|
56
|
-
"vant": "^4.9.19"
|
|
44
|
+
"vant": "^4.9.19",
|
|
45
|
+
"@cgboiler/core": "1.0.0"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"dev": "cg-cli dev",
|
|
49
|
+
"test": "cg-cli test",
|
|
50
|
+
"lint": "cg-cli lint",
|
|
51
|
+
"build": "cg-cli build",
|
|
52
|
+
"build-npm": "cg-cli build",
|
|
53
|
+
"release": "cg-cli release",
|
|
54
|
+
"test:coverage": "open test/coverage/index.html",
|
|
55
|
+
"build-site": "cg-cli build-site",
|
|
56
|
+
"changelog": "cg-cli changelog",
|
|
57
|
+
"duero-config": "echo 'Do not need duero config'"
|
|
57
58
|
}
|
|
58
|
-
}
|
|
59
|
+
}
|
package/es/project-list/index.js
DELETED
package/es/utils/useFetch.d.ts
DELETED
package/es/utils/useFetch.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
var __async = (__this, __arguments, generator) => {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
var fulfilled = (value) => {
|
|
35
|
-
try {
|
|
36
|
-
step(generator.next(value));
|
|
37
|
-
} catch (e) {
|
|
38
|
-
reject(e);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
var rejected = (value) => {
|
|
42
|
-
try {
|
|
43
|
-
step(generator.throw(value));
|
|
44
|
-
} catch (e) {
|
|
45
|
-
reject(e);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
49
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const useFetch = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (url, config = {}) {
|
|
53
|
-
const _a = config, { params } = _a, restConfig = __objRest(_a, ["params"]);
|
|
54
|
-
const queryString = params ? "?" + Object.entries(params).map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`).join("&") : "";
|
|
55
|
-
const finalUrl = url + queryString;
|
|
56
|
-
const userInfo = localStorage.getItem("userInfo");
|
|
57
|
-
const token = userInfo ? JSON.parse(userInfo).token : "";
|
|
58
|
-
const response = yield fetch(finalUrl, __spreadProps(__spreadValues({}, restConfig), {
|
|
59
|
-
headers: __spreadValues({
|
|
60
|
-
"Content-Type": "application/json",
|
|
61
|
-
token: token || ""
|
|
62
|
-
}, restConfig.headers)
|
|
63
|
-
}));
|
|
64
|
-
if (!response.ok) {
|
|
65
|
-
throw new Error(`HTTP error! status: ${response.status}`);
|
|
66
|
-
}
|
|
67
|
-
const data = yield response.json();
|
|
68
|
-
return data;
|
|
69
|
-
});
|
|
70
|
-
export {
|
|
71
|
-
useFetch
|
|
72
|
-
};
|
package/lib/utils/useFetch.d.ts
DELETED
package/lib/utils/useFetch.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
var __objRest = (source, exclude) => {
|
|
23
|
-
var target = {};
|
|
24
|
-
for (var prop in source)
|
|
25
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
26
|
-
target[prop] = source[prop];
|
|
27
|
-
if (source != null && __getOwnPropSymbols)
|
|
28
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
29
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
30
|
-
target[prop] = source[prop];
|
|
31
|
-
}
|
|
32
|
-
return target;
|
|
33
|
-
};
|
|
34
|
-
var __export = (target, all) => {
|
|
35
|
-
for (var name in all)
|
|
36
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
-
};
|
|
38
|
-
var __copyProps = (to, from, except, desc) => {
|
|
39
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
40
|
-
for (let key of __getOwnPropNames(from))
|
|
41
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
42
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
43
|
-
}
|
|
44
|
-
return to;
|
|
45
|
-
};
|
|
46
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
|
-
var __async = (__this, __arguments, generator) => {
|
|
48
|
-
return new Promise((resolve, reject) => {
|
|
49
|
-
var fulfilled = (value) => {
|
|
50
|
-
try {
|
|
51
|
-
step(generator.next(value));
|
|
52
|
-
} catch (e) {
|
|
53
|
-
reject(e);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
var rejected = (value) => {
|
|
57
|
-
try {
|
|
58
|
-
step(generator.throw(value));
|
|
59
|
-
} catch (e) {
|
|
60
|
-
reject(e);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
64
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
var stdin_exports = {};
|
|
68
|
-
__export(stdin_exports, {
|
|
69
|
-
useFetch: () => useFetch
|
|
70
|
-
});
|
|
71
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
72
|
-
const useFetch = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (url, config = {}) {
|
|
73
|
-
const _a = config, { params } = _a, restConfig = __objRest(_a, ["params"]);
|
|
74
|
-
const queryString = params ? "?" + Object.entries(params).map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`).join("&") : "";
|
|
75
|
-
const finalUrl = url + queryString;
|
|
76
|
-
const userInfo = localStorage.getItem("userInfo");
|
|
77
|
-
const token = userInfo ? JSON.parse(userInfo).token : "";
|
|
78
|
-
const response = yield fetch(finalUrl, __spreadProps(__spreadValues({}, restConfig), {
|
|
79
|
-
headers: __spreadValues({
|
|
80
|
-
"Content-Type": "application/json",
|
|
81
|
-
token: token || ""
|
|
82
|
-
}, restConfig.headers)
|
|
83
|
-
}));
|
|
84
|
-
if (!response.ok) {
|
|
85
|
-
throw new Error(`HTTP error! status: ${response.status}`);
|
|
86
|
-
}
|
|
87
|
-
const data = yield response.json();
|
|
88
|
-
return data;
|
|
89
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|