baiqiu-cms-decoration-dg 0.0.13 → 0.0.15

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.
Files changed (40) hide show
  1. package/README.md +24 -18
  2. package/babel.config.js +5 -0
  3. package/dist/css/app.c8a95540.css +1 -0
  4. package/dist/css/chunk-vendors.ef1800aa.css +7 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/index.html +1 -0
  7. package/dist/js/app.6a81c3d6.js +2 -0
  8. package/dist/js/app.6a81c3d6.js.map +1 -0
  9. package/dist/js/chunk-vendors.cfd53f93.js +37 -0
  10. package/dist/js/chunk-vendors.cfd53f93.js.map +1 -0
  11. package/package.json +54 -48
  12. package/public/favicon.ico +0 -0
  13. package/public/index.html +17 -0
  14. package/src/App.vue +594 -1007
  15. package/src/components/cms/buttonItem/buttonItem.js +1 -5
  16. package/src/components/cms/cms.js +13 -6
  17. package/src/components/cms/cms.vue +5 -4
  18. package/src/components/cms/imgNav/imgNav.js +0 -1
  19. package/src/components/cms/mixin.js +3 -8
  20. package/src/components/cms/productItem/productItem.js +5 -8
  21. package/src/components/cms/productItem/productItem.scss +2 -2
  22. package/src/components/cms/singleLayout/singleLayout.vue +6 -6
  23. package/src/components/cms/slideLayout/slideLayout.js +1 -1
  24. package/src/components/cms/tabLayout/tabLayout.js +3 -3
  25. package/src/components/cms/textItem/textItem.js +62 -69
  26. package/src/index.js +15 -18
  27. package/src/main.js +8 -7
  28. package/src/utils/http-client.js +0 -10
  29. package/.babelrc +0 -17
  30. package/.editorconfig +0 -9
  31. package/.prettierrc +0 -8
  32. package/dist/baiqiu-cms-decoration.min.js +0 -19
  33. package/dist/baiqiu-cms-decoration.min.js.map +0 -1
  34. package/dist/iconfont.svg +0 -1
  35. package/index.html +0 -11
  36. package/webpack.config.js +0 -113
  37. /package/dist/{font/iconfont.ttf → fonts/iconfont.529b3ed0.ttf} +0 -0
  38. /package/dist/{font/iconfont.eot → fonts/iconfont.580c918e.eot} +0 -0
  39. /package/dist/{font/iconfont.woff → fonts/iconfont.ea5b1aa2.woff} +0 -0
  40. /package/dist/{font/iconfont.svg → img/iconfont.654cc65b.svg} +0 -0
package/dist/iconfont.svg DELETED
@@ -1 +0,0 @@
1
- module.exports = __webpack_public_path__ + "font/iconfont.svg";
package/index.html DELETED
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>baiqiu-cms</title>
6
- </head>
7
- <body>
8
- <div id="app"></div>
9
- <script src="/dist/build.js"></script>
10
- </body>
11
- </html>
package/webpack.config.js DELETED
@@ -1,113 +0,0 @@
1
- var path = require("path");
2
- var webpack = require("webpack");
3
-
4
- var entry = "./src/main.js";
5
- var filename = "build.js";
6
-
7
- if (process.env.NODE_ENV !== "development") {
8
- entry = "./src/index.js";
9
- filename = "baiqiu-cms-decoration.min.js";
10
- }
11
-
12
- function resolve (dir) {
13
- return path.join(__dirname, '..', dir)
14
- }
15
-
16
-
17
- module.exports = {
18
- entry,
19
- output: {
20
- path: path.resolve(__dirname, "./dist"),
21
- publicPath: "/dist/",
22
- filename,
23
- library: "bq-cms2.0-decoration.min",
24
- libraryTarget: "umd",
25
- umdNamedDefine: true
26
- },
27
- module: {
28
- rules: [
29
- {
30
- test: /\.css$/,
31
- use: ["vue-style-loader", "css-loader"]
32
- },
33
- {
34
- test: /\.scss$/,
35
- use: ["vue-style-loader", "css-loader", "sass-loader"]
36
- },
37
- {
38
- test: /\.sass$/,
39
- use: ["vue-style-loader", "css-loader", "sass-loader?indentedSyntax"]
40
- },
41
- {
42
- test: /\.vue$/,
43
- loader: "vue-loader",
44
- options: {
45
- loaders: {
46
- // Since sass-loader (weirdly) has SCSS as its default parse mode, we map
47
- // the "scss" and "sass" values for the lang attribute to the right configs here.
48
- // other preprocessors should work out of the box, no loader config like this necessary.
49
- scss: ["vue-style-loader", "css-loader", "sass-loader"],
50
- sass: [
51
- "vue-style-loader",
52
- "css-loader",
53
- "sass-loader?indentedSyntax"
54
- ]
55
- }
56
- // other vue-loader options go here
57
- }
58
- },
59
- {
60
- test: /\.js$/,
61
- loader: "babel-loader",
62
- // exclude: /node_modules/
63
- },
64
- {
65
- test: /\.(png|jpg|gif|svg)$/,
66
- loader: "file-loader",
67
- options: {
68
- name: "[name].[ext]?[hash]"
69
- }
70
- },
71
- {
72
- test: /\.(woff|ttf|eot|svg)/,
73
- loader: "file-loader?name=font/[name].[ext]"
74
- }
75
- ]
76
- },
77
- resolve: {
78
- alias: {
79
- vue$: "vue/dist/vue.esm.js"
80
- },
81
- extensions: ["*", ".js", ".vue", ".json"]
82
- },
83
- devServer: {
84
- historyApiFallback: true,
85
- noInfo: true,
86
- overlay: true
87
- },
88
- performance: {
89
- hints: false
90
- },
91
- devtool: "#eval-source-map"
92
- };
93
-
94
- if (process.env.NODE_ENV === "production") {
95
- module.exports.devtool = "#source-map";
96
- // http://vue-loader.vuejs.org/en/workflow/production.html
97
- module.exports.plugins = (module.exports.plugins || []).concat([
98
- new webpack.DefinePlugin({
99
- "process.env": {
100
- NODE_ENV: '"production"'
101
- }
102
- }),
103
- new webpack.optimize.UglifyJsPlugin({
104
- sourceMap: true,
105
- compress: {
106
- warnings: false
107
- }
108
- }),
109
- new webpack.LoaderOptionsPlugin({
110
- minimize: true
111
- })
112
- ]);
113
- }