Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GraceTemplate
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
front-end
GraceTemplate
Commits
a50aec1f
Commit
a50aec1f
authored
Oct 25, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new 模板
parent
4e7e409c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
package.json
package.json
+1
-1
MD.ts
src/MD.ts
+1
-1
index.ts
src/built-in/md/index.ts
+2
-0
HomeDemo.tsx
src/pages/HomeDemo/HomeDemo.tsx
+1
-1
No files found.
package.json
View file @
a50aec1f
{
{
"name"
:
"
spark_
template"
,
"name"
:
"
@grace/
template"
,
"private"
:
true
,
"private"
:
true
,
"version"
:
"0.0.1"
,
"version"
:
"0.0.1"
,
"type"
:
"module"
,
"type"
:
"module"
,
...
...
src/MD.ts
View file @
a50aec1f
...
@@ -5,7 +5,7 @@ import { logClick, logExposure } from "@spark/utils/src-js/md";
...
@@ -5,7 +5,7 @@ import { logClick, logExposure } from "@spark/utils/src-js/md";
const
appId
=
CFG
.
appID
;
const
appId
=
CFG
.
appID
;
const
dcm
=
"202."
+
CFG
.
projectId
+
".0.0"
;
const
dcm
=
"202."
+
CFG
.
projectId
+
".0.0"
;
const
domain
=
"https://embedlog.duiba.com.cn"
;
const
domain
=
"https://embedlog.duiba.com.cn"
;
const
MDList
=
new
Array
(
50
).
fill
(
""
).
map
((
v
,
i
)
=>
{
const
MDList
=
new
Array
(
2
).
fill
(
""
).
map
((
v
,
i
)
=>
{
return
{
return
{
ele
:
`.md
${
i
+
1
}
`
,
ele
:
`.md
${
i
+
1
}
`
,
data
:
{
data
:
{
...
...
src/built-in/md/index.ts
View file @
a50aec1f
...
@@ -5,7 +5,9 @@ import * as utils from "./utils";
...
@@ -5,7 +5,9 @@ import * as utils from "./utils";
const
clickMapper
=
new
Map
();
const
clickMapper
=
new
Map
();
const
handleClick
=
(
click
:
any
[])
=>
{
const
handleClick
=
(
click
:
any
[])
=>
{
click
.
forEach
((
item
)
=>
{
click
.
forEach
((
item
)
=>
{
// 元素在文档, 并且没有绑定点击埋点
// 元素在文档, 并且没有绑定点击埋点
// 那么需要绑定点击埋点
// 那么需要绑定点击埋点
if
(
typeof
item
.
ele
===
"string"
)
{
if
(
typeof
item
.
ele
===
"string"
)
{
...
...
src/pages/HomeDemo/HomeDemo.tsx
View file @
a50aec1f
...
@@ -16,7 +16,7 @@ class HomeDemo extends React.Component {
...
@@ -16,7 +16,7 @@ class HomeDemo extends React.Component {
render
()
{
render
()
{
return
<
div
className=
"homeDemo md1"
>
return
<
div
className=
"homeDemo md1"
>
<
div
className=
"homeImg"
/>
<
div
className=
"homeImg
md1
"
/>
<
img
src=
{
png
}
/>
<
img
src=
{
png
}
/>
当前为活动首页
当前为活动首页
<
SvgaPlayer
className=
"svga"
src=
{
svga
}
/>
<
SvgaPlayer
className=
"svga"
src=
{
svga
}
/>
...
...
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