@toolspack/ttd-common 1.1.4 → 1.1.5

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/package.json CHANGED
@@ -1,36 +1,36 @@
1
- {
2
- "name": "@toolspack/ttd-common",
3
- "version": "1.1.4",
4
- "private": false,
5
- "main": "lib/ttd-common.umd.min.js",
6
- "scripts": {
7
- "serve": "vue-cli-service serve",
8
- "build": "vue-cli-service build",
9
- "lib": "vue-cli-service build --target lib --dest lib ./src/packages/index.js",
10
- "lint": "vue-cli-service lint --max-warnings 100"
11
- },
12
- "dependencies": {
13
- "babel-cli": "^6.26.0",
14
- "babel-laoder": "0.0.1-security",
15
- "babel-polyfill": "^6.26.0",
16
- "core-js": "^3.6.5",
17
- "less": "^3.8.1",
18
- "less-loader": "^4.1.0",
19
- "vue": "^2.6.12"
20
- },
21
- "devDependencies": {
22
- "@vue/cli-plugin-babel": "~4.5.0",
23
- "@vue/cli-plugin-eslint": "~4.5.11",
24
- "@vue/cli-service": "~4.5.0",
25
- "@vue/eslint-config-airbnb": "^5.3.0",
26
- "babel-eslint": "^10.1.0",
27
- "babel-preset-es2015": "^6.24.1",
28
- "eslint": "^6.7.2",
29
- "eslint-plugin-import": "^2.22.1",
30
- "eslint-plugin-node": "^11.1.0",
31
- "eslint-plugin-promise": "^4.2.1",
32
- "eslint-plugin-vue": "^6.2.2",
33
- "sockjs-client": "^1.5.1",
34
- "vue-template-compiler": "^2.6.12"
35
- }
36
- }
1
+ {
2
+ "name": "@toolspack/ttd-common",
3
+ "version": "1.1.5",
4
+ "private": false,
5
+ "main": "lib/ttd-common.umd.min.js",
6
+ "scripts": {
7
+ "serve": "vue-cli-service serve",
8
+ "build": "vue-cli-service build",
9
+ "lib": "vue-cli-service build --target lib --dest lib ./src/packages/index.js",
10
+ "lint": "vue-cli-service lint --max-warnings 100"
11
+ },
12
+ "dependencies": {
13
+ "babel-cli": "^6.26.0",
14
+ "babel-laoder": "0.0.1-security",
15
+ "babel-polyfill": "^6.26.0",
16
+ "core-js": "^3.6.5",
17
+ "less": "^3.8.1",
18
+ "less-loader": "^4.1.0",
19
+ "vue": "^2.6.12"
20
+ },
21
+ "devDependencies": {
22
+ "@vue/cli-plugin-babel": "~4.5.0",
23
+ "@vue/cli-plugin-eslint": "~4.5.11",
24
+ "@vue/cli-service": "~4.5.0",
25
+ "@vue/eslint-config-airbnb": "^5.3.0",
26
+ "babel-eslint": "^10.1.0",
27
+ "babel-preset-es2015": "^6.24.1",
28
+ "eslint": "^6.7.2",
29
+ "eslint-plugin-import": "^2.22.1",
30
+ "eslint-plugin-node": "^11.1.0",
31
+ "eslint-plugin-promise": "^4.2.1",
32
+ "eslint-plugin-vue": "^6.2.2",
33
+ "sockjs-client": "^1.5.1",
34
+ "vue-template-compiler": "^2.6.12"
35
+ }
36
+ }
package/postcss.config.js CHANGED
@@ -1 +1 @@
1
- module.exports = {}
1
+ module.exports = {}
package/src/App.vue CHANGED
@@ -1,53 +1,53 @@
1
- <template>
2
- <div id="app">
3
- <form id="myForm" @submit.prevent="uploadFile">
4
- <label for="">请上传:</label>
5
- <input type="file" ref="fileInput" multiple name="files"><br>
6
- <input type="hidden" name="bucketName" :value="uName">
7
- <input type="submit" value="提交">
8
- </form>
9
- </div>
10
- </template>
11
-
12
- <script>
13
-
14
- const _baseUrl = 'http://peys.totodi.com:37811/'
15
-
16
- export default {
17
- name: 'App',
18
- data() {
19
- return {
20
- url: 'https://petx.totodi.com/visit/totodi-contract/20230905-e777d0d33a6f440db4b5276b397121fd-无法翻页-40.pdf?expireDataTime=1693900521328',
21
- uName: 'totodi-contract',
22
- action: `${_baseUrl}zuul/file-service/oos/uploadFile`,
23
- }
24
- },
25
- mounted() {
26
- },
27
- methods: {
28
- uploadFile() {
29
- const formData = new FormData();
30
- const files = this.$refs.fileInput.files;
31
-
32
- // 添加文件数据到表单中
33
- for (let i = 0; i < files.length; i++) {
34
- formData.append('files', files[i]);
35
- }
36
-
37
- // 添加其他字段数据到表单中
38
- formData.append('u_name', this.uName);
39
- },
40
- },
41
- }
42
- </script>
43
-
44
- <style lange="less">
45
- #app {
46
- font-family: Avenir, Helvetica, Arial, sans-serif;
47
- -webkit-font-smoothing: antialiased;
48
- -moz-osx-font-smoothing: grayscale;
49
- text-align: center;
50
- color: #2c3e50;
51
- margin-top: 60px;
52
- }
53
- </style>
1
+ <template>
2
+ <div id="app">
3
+ <form id="myForm" @submit.prevent="uploadFile">
4
+ <label for="">请上传:</label>
5
+ <input type="file" ref="fileInput" multiple name="files"><br>
6
+ <input type="hidden" name="bucketName" :value="uName">
7
+ <input type="submit" value="提交">
8
+ </form>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+
14
+ const _baseUrl = 'http://peys.totodi.com:37811/'
15
+
16
+ export default {
17
+ name: 'App',
18
+ data() {
19
+ return {
20
+ url: 'https://petx.totodi.com/visit/totodi-contract/20230905-e777d0d33a6f440db4b5276b397121fd-无法翻页-40.pdf?expireDataTime=1693900521328',
21
+ uName: 'totodi-contract',
22
+ action: `${_baseUrl}zuul/file-service/oos/uploadFile`,
23
+ }
24
+ },
25
+ mounted() {
26
+ },
27
+ methods: {
28
+ uploadFile() {
29
+ const formData = new FormData();
30
+ const files = this.$refs.fileInput.files;
31
+
32
+ // 添加文件数据到表单中
33
+ for (let i = 0; i < files.length; i++) {
34
+ formData.append('files', files[i]);
35
+ }
36
+
37
+ // 添加其他字段数据到表单中
38
+ formData.append('u_name', this.uName);
39
+ },
40
+ },
41
+ }
42
+ </script>
43
+
44
+ <style lange="less">
45
+ #app {
46
+ font-family: Avenir, Helvetica, Arial, sans-serif;
47
+ -webkit-font-smoothing: antialiased;
48
+ -moz-osx-font-smoothing: grayscale;
49
+ text-align: center;
50
+ color: #2c3e50;
51
+ margin-top: 60px;
52
+ }
53
+ </style>
package/src/main.js CHANGED
@@ -1,8 +1,8 @@
1
- import Vue from 'vue';
2
- import App from './App.vue';
3
-
4
- Vue.config.productionTip = false;
5
-
6
- new Vue({
7
- render: (h) => h(App),
8
- }).$mount('#app');
1
+ import Vue from 'vue';
2
+ import App from './App.vue';
3
+
4
+ Vue.config.productionTip = false;
5
+
6
+ new Vue({
7
+ render: (h) => h(App),
8
+ }).$mount('#app');