fix decode error and write some doc
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
import sqlite3
|
||||
import DecoratorConstValue as dcv
|
||||
import json
|
||||
import locale
|
||||
|
||||
def run():
|
||||
exportDb = sqlite3.connect('export.db')
|
||||
exportDb.text_factory = lambda x: x.decode(locale.getpreferredencoding())
|
||||
decorateDb = sqlite3.connect('decorate.db')
|
||||
|
||||
# init table
|
||||
|
@ -3,6 +3,7 @@ from flask import g
|
||||
from flask import render_template
|
||||
from flask import url_for
|
||||
from flask import request
|
||||
from flask import abort
|
||||
|
||||
from functools import reduce
|
||||
import sqlite3
|
||||
@ -47,6 +48,10 @@ def indexHandle():
|
||||
|
||||
@app.route('/<path:scriptPath>', methods=['GET'])
|
||||
def scriptHandle(scriptPath):
|
||||
# fuck favition.ico
|
||||
if '.' in scriptPath:
|
||||
abort(404)
|
||||
|
||||
# comput hamburger
|
||||
pathSlice = scriptPath.split('/')
|
||||
cur = get_db().cursor()
|
||||
|
@ -15,17 +15,23 @@ function highlightLink(target) {
|
||||
});
|
||||
}
|
||||
|
||||
//apply new highlight
|
||||
$(realTarget).each(function() {
|
||||
if ($(this).hasClass("link-blink")) {
|
||||
$(this).attr("stroke", "yellow")
|
||||
}
|
||||
if ($(this).hasClass("link-blinkDelay")) {
|
||||
$(this).attr("fill", "yellow")
|
||||
}
|
||||
});
|
||||
// double one-click, only cancel highlight and don't apply any hightlight
|
||||
if (realTarget == previousHighlight) {
|
||||
previousHighlight = "";
|
||||
} else {
|
||||
//apply new highlight
|
||||
$(realTarget).each(function() {
|
||||
if ($(this).hasClass("link-blink")) {
|
||||
$(this).attr("stroke", "yellow")
|
||||
}
|
||||
if ($(this).hasClass("link-blinkDelay")) {
|
||||
$(this).attr("fill", "yellow")
|
||||
}
|
||||
});
|
||||
|
||||
previousHighlight = realTarget
|
||||
}
|
||||
|
||||
previousHighlight = realTarget
|
||||
//cancel event seperate
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
17
SuperScriptViewer/templates/help.html
Normal file
17
SuperScriptViewer/templates/help.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Super Script Viewer Help</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Super Script Viewer Help</h1>
|
||||
<p>In this file, I will introduce how to use this viewer.</p>
|
||||
<br />
|
||||
<br />
|
||||
<!-- todo: finish this-->
|
||||
</body>
|
||||
|
||||
</html>
|
@ -19,7 +19,12 @@
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% endfor %}
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<p>Generated by <a href="https://github.com/yyc12345/SuperScriptMaterializer">SuperScriptMaterializer</a>. All codes are under GPLv3.<br />
|
||||
Powered by <a href="https://github.com/pallets/flask">Flask</a>.<br />
|
||||
Ancestor projects: <a href="https://github.com/BearKidsTeam/VirtoolsScriptDeobfuscation">BearKidsTeam/VirtoolsScriptDeobfuscation</a> and <a href="https://github.com/BearKidsTeam/Script-Materializer">BearKidsTeam/Script-Materializer</a>.<br />
|
||||
Thank <a href="https://github.com/chirs241097">chirs241097</a> and <a href="https://github.com/instr3">2jjy</a>.</p>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -25,7 +25,7 @@
|
||||
|
||||
</div>
|
||||
<div style="width: 100px;">
|
||||
<button style="width: 100px; height: 50px;">LEGEND</button>
|
||||
<button style="width: 100px; height: 50px;">Help</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="background: #7f7f7f; width: 100%; height: 100%; overflow: scroll; position: relative;">
|
||||
|
Reference in New Issue
Block a user