Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
px3
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
px3
Commits
571a6386
Commit
571a6386
authored
Dec 25, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加环境提取
parent
f8600c76
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1442 additions
and
4258 deletions
+1442
-4258
collect_env.py
env/collect_env.py
+19
-0
collect.js
env/templates/collect.js
+1411
-0
px.js
src/px.js
+12
-4258
No files found.
env/collect_env.py
0 → 100644
View file @
571a6386
from
flask
import
Flask
,
request
,
render_template
,
send_file
app
=
Flask
(
__name__
)
@
app
.
route
(
'/'
)
def
index
():
return
render_template
(
'index.html'
)
@
app
.
route
(
'/collect.js'
)
def
js
():
return
send_file
(
'templates/collect.js'
,
)
@
app
.
route
(
'/collect'
,
methods
=
[
"POST"
])
def
collect
():
print
(
request
.
data
.
decode
())
return
'ok'
if
__name__
==
'__main__'
:
app
.
run
(
host
=
'0.0.0.0'
,
debug
=
True
,
port
=
11233
)
\ No newline at end of file
env/templates/collect.js
0 → 100644
View file @
571a6386
This diff is collapsed.
Click to expand it.
src/px.js
View file @
571a6386
This diff is collapsed.
Click to expand it.
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