Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
testspark317
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
testspark317
Commits
c5dbb7b9
Commit
c5dbb7b9
authored
Mar 20, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:wildfirecode13/testspark317
parents
c7f80d35
0eab09d9
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
8 deletions
+35
-8
.eslintrc.js
project/.eslintrc.js
+22
-0
webpack.common.config.js
project/config/webpack.common.config.js
+1
-2
index.html
project/public/index.html
+9
-3
sparkrc.js
project/sparkrc.js
+1
-1
sparkrescfg.json
project/sparkrescfg.json
+1
-1
index.js
project/src/api/index.js
+1
-1
No files found.
project/.eslintrc.js
0 → 100644
View file @
c5dbb7b9
module
.
exports
=
{
"parser"
:
"babel-eslint"
,
"env"
:
{
"browser"
:
true
,
"es2021"
:
true
},
"extends"
:
[
"eslint:all"
],
"parserOptions"
:
{
"ecmaFeatures"
:
{
"jsx"
:
true
},
"ecmaVersion"
:
12
,
"sourceType"
:
"module"
},
"plugins"
:
[
"react"
],
"rules"
:
{
}
};
\ No newline at end of file
project/config/webpack.common.config.js
View file @
c5dbb7b9
...
...
@@ -8,7 +8,6 @@ const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const
TerserPlugin
=
require
(
"terser-webpack-plugin"
);
const
OptimizeCSSAssetsPlugin
=
require
(
"optimize-css-assets-webpack-plugin"
);
const
ProgressBarPlugin
=
require
(
"progress-bar-webpack-plugin"
);
const
HtmlJsToES5Plugin
=
require
(
"./HtmlJsToES5Plugin"
);
...
...
@@ -87,7 +86,7 @@ module.exports = function (isProd) {
rules
:
[
// 提前进行eslint, 默认从下往上,通过enforce pre提前
isEslint
&&
{
test
:
/
\.
js|jsx
/
,
test
:
/
\.
(
js|jsx
)
$
/
,
enforce
:
"pre"
,
loader
:
"eslint-loader"
,
options
:
{
...
...
project/public/index.html
View file @
c5dbb7b9
...
...
@@ -9,10 +9,16 @@
<script
src=
"//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/h5/lib/zepto.min.js"
></script>
<script>
let
a
=
()
=>
{
console
.
log
(
a
);
console
.
log
(
`
${
123
}
456
${
789
}
`
)
const
[
a
,
b
]
=
[
1
,
2
]
</script>
<script>
let
testFunc2
=
()
=>
{
const
str2
=
'hello'
;
console
.
log
(
str2
)
}
</script>
<script>
function
getApp
()
{
return
{
...
...
project/sparkrc.js
View file @
c5dbb7b9
...
...
@@ -9,5 +9,5 @@ module.exports ={
"IMAGE_Q1"
:
0.6
,
"IMAGE_Q2"
:
0.8
,
"RES_PATH"
:
"/src/assets/"
,
"RES_PATH_PROD"
:
"//yun.duiba.com.cn/spark/v2/sparkproject-1615946260312/16159
63701459
"
"RES_PATH_PROD"
:
"//yun.duiba.com.cn/spark/v2/sparkproject-1615946260312/16159
70526293
"
}
\ No newline at end of file
project/sparkrescfg.json
View file @
c5dbb7b9
{
"assetsPathArr"
:[
"//yun.duiba.com.cn/spark/v2/sparkproject-1615946260312/1615963701459/index/index_bg.png"
]}
\ No newline at end of file
{
"assetsPathArr"
:[
"//yun.duiba.com.cn/spark/v2/sparkproject-1615946260312/1615970526293/index/index_bg.png"
]}
\ No newline at end of file
project/src/api/index.js
View file @
c5dbb7b9
...
...
@@ -4,7 +4,7 @@ import {callApi} from '@spark/api-base'
import
{
Toast
}
from
'@spark/ui'
import
{
isFromShare
,
newUser
}
from
'duiba-utils'
;
var
c
=
a
+
b
;
let
mergeData
=
{
user_type
:
newUser
?
'0'
:
'1'
,
is_from_share
:
isFromShare
?
'0'
:
'1'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment