touch-vue-pc 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +22 -0
  2. package/package.json +68 -0
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ const axios = require('axios');
3
+
4
+ axios.get('https://api.gushi.ci/all.json')
5
+ .then(function (response) {
6
+ let data = response.data || {};
7
+ let signature = data.author + '《' + data.origin + '》';
8
+ let prefix = '———— ';
9
+ let paddingSpacing = '';
10
+ let spacingLength = data.content.length * 2 - signature.length * 2 - prefix.length;
11
+ if (spacingLength > 0) {
12
+ if (data.origin.indexOf('·') !== -1) {
13
+ spacingLength++;
14
+ }
15
+ paddingSpacing = new Array(spacingLength).fill(' ').join('');
16
+ }
17
+ signature = (paddingSpacing + prefix) + signature
18
+ console.log();
19
+ console.log(data.content);
20
+ console.log(signature);
21
+ console.log();
22
+ });
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "touch-vue-pc",
3
+ "version": "1.0.0",
4
+ "description": "touch-vue-pc",
5
+ "bin": {
6
+ "touch-vue-pc": "index.js"
7
+ },
8
+ "main": "index.js",
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "author": "guoyq",
13
+ "license": "ISC",
14
+ "dependencies": {
15
+ "axios": "^0.19.0",
16
+ "babel-polyfill": "^6.26.0",
17
+ "clipboard": "1.7.1",
18
+ "codemirror": "5.39.2",
19
+ "core-js": "^3.3.2",
20
+ "crypto-js": "^3.1.9-1",
21
+ "driver.js": "0.8.1",
22
+ "eslint-import-resolver-webpack": "^0.11.1",
23
+ "file-saver": "1.3.8",
24
+ "font-awesome": "^4.7.0",
25
+ "friendly-errors-webpack-plugin": "^1.7.0",
26
+ "fuse.js": "3.4.2",
27
+ "html-webpack-plugin": "^5.5.0",
28
+ "html2canvas": "^1.0.0-rc.5",
29
+ "jquery": "^3.4.1",
30
+ "js-cookie": "2.2.0",
31
+ "jsuri": "^1.3.1",
32
+ "mockjs": "1.0.1-beta3",
33
+ "normalize.css": "7.0.0",
34
+ "sortablejs": "1.7.0",
35
+ "vconsole": "^3.3.4",
36
+ "vue": "^2.6.10",
37
+ "vue-count-to": "1.0.13",
38
+ "vue-fontawesome-elementui-icon-picker": "^0.1.9",
39
+ "vue-i18n": "7.3.2",
40
+ "vue-router": "^3.1.3",
41
+ "vue-splitpane": "1.0.2",
42
+ "vuex": "^3.0.1"
43
+ },
44
+ "devDependencies": {
45
+ "@babel/core": "^7.8.7",
46
+ "@babel/plugin-transform-runtime": "^7.8.3",
47
+ "@babel/preset-env": "^7.8.7",
48
+ "@vue/cli-plugin-babel": "^4.0.0",
49
+ "@vue/cli-plugin-eslint": "^4.0.0",
50
+ "@vue/cli-plugin-router": "^4.0.0",
51
+ "@vue/cli-plugin-unit-mocha": "^4.0.0",
52
+ "@vue/cli-plugin-vuex": "^4.0.0",
53
+ "@vue/cli-service": "^4.0.0",
54
+ "@vue/eslint-config-airbnb": "^4.0.0",
55
+ "@vue/test-utils": "1.0.0-beta.29",
56
+ "babel-core": "^6.26.3",
57
+ "babel-eslint": "^10.0.3",
58
+ "babel-loader": "^7.1.5",
59
+ "babel-plugin-import": "^1.13.0",
60
+ "babel-polyfill": "^6.26.0",
61
+ "babel-preset-env": "^1.7.0",
62
+ "element-ui": "^2.15.1",
63
+ "less": "^3.0.4",
64
+ "less-loader": "^5.0.0",
65
+ "mockjs": "^1.1.0",
66
+ "node-sass": "^4.12.0"
67
+ }
68
+ }