添加控制台版本号输出
This commit is contained in:
parent
b4d1be2153
commit
4af706b4d5
3
Gmeek.py
3
Gmeek.py
@ -33,6 +33,7 @@ class GMEEK():
|
||||
print(self.labelColorDict)
|
||||
|
||||
self.blogBase=self.config.copy()
|
||||
self.blogBase["GMEEK_VERSION"]=options.Gmeek_version
|
||||
self.blogBase["postListJson"]=json.loads('{}')
|
||||
|
||||
def cleanFile(self):
|
||||
@ -79,6 +80,7 @@ class GMEEK():
|
||||
postBase["i18n"]=self.blogBase["i18n"]
|
||||
postBase["commentNum"]=issue["commentNum"]
|
||||
postBase["repoName"]=options.repo_name
|
||||
postBase["GMEEK_VERSION"]=options.Gmeek_version
|
||||
|
||||
f = open(gen_Html, 'w', encoding='UTF-8')
|
||||
f.write(self.post_example % json.dumps(postBase))
|
||||
@ -144,6 +146,7 @@ class GMEEK():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("github_token", help="github_token")
|
||||
parser.add_argument("repo_name", help="repo_name")
|
||||
parser.add_argument("Gmeek_version", help="Gmeek_version")
|
||||
parser.add_argument("--issue_number", help="issue_number", default=0, required=False)
|
||||
options = parser.parse_args()
|
||||
|
||||
|
||||
@ -193,5 +193,7 @@ function modeSwitch(){
|
||||
else{changeLight();localStorage.setItem("meek_theme","light");}
|
||||
}
|
||||
|
||||
console.log("\n %c Gmeek " + blogBase["GMEEK_VERSION"] + " %c https://github.com/Meekdai/Gmeek \n\n", "color: #fff; background-image: linear-gradient(90deg, rgb(47, 172, 178) 0%, rgb(45, 190, 96) 100%); padding:5px 1px;", "background-image: linear-gradient(90deg, rgb(45, 190, 96) 0%, rgb(255, 255, 255) 100%); padding:5px 0;");
|
||||
|
||||
</script>
|
||||
</html>
|
||||
|
||||
@ -163,5 +163,6 @@ function iFrameLoading(){
|
||||
}
|
||||
}
|
||||
|
||||
console.log("\n %c Gmeek " + blogBase["GMEEK_VERSION"] + " %c https://github.com/Meekdai/Gmeek \n\n", "color: #fff; background-image: linear-gradient(90deg, rgb(47, 172, 178) 0%, rgb(45, 190, 96) 100%); padding:5px 1px;", "background-image: linear-gradient(90deg, rgb(45, 190, 96) 0%, rgb(255, 255, 255) 100%); padding:5px 0;");
|
||||
</script>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user