-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from Light-Beacon/nxtverbuilder
Nxtverbuilder
- Loading branch information
Showing
302 changed files
with
89 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
/.vscode | ||
/Config | ||
/Cache | ||
*/cache | ||
.cache | ||
*/Private | ||
private.* | ||
__pycache__ | ||
.DS_Store | ||
Log | ||
private.* | ||
private.* | ||
output/ | ||
Private/ | ||
output.xaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Server.Update.GitHub.Webhook.Enable: True | ||
Public.domain: news.bugjump.net | ||
Server.Version.By: githash |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: rootlibrary | ||
fill: | ||
canswap: true | ||
s: true | ||
isswaped: ${s} | ||
domain: ${@PublicConf|domain|news.bugjump.net} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from homepagebuilder.interfaces import config | ||
from homepagebuilder.interfaces.Events import on, ResultOverride | ||
|
||
@on('page.generate.start') | ||
def script(_page,context): | ||
if context.setter: | ||
if mod_domain := context.setter.override.get('domain'): | ||
if mod_domain not in config('safe_domains',['news.bugjump.net']): | ||
raise ResultOverride('') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Modules/MainPageVersions.py → Project/modules/MainPageVersions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Modules/MinecraftVersions.py → Project/modules/MinecraftVersions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Modules/SeparatorContent.py → Project/modules/SeparatorContent.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from Interfaces import invoke,require,script | ||
from homepagebuilder.interfaces import require,script | ||
|
||
mcv = require('MinecraftVersions') # 需求前置 MinecraftVersions | ||
get_server_jar = mcv.get_server_jar | ||
|
||
@script('ServerJar') | ||
def script(card,**_): | ||
def get_server_jar_script(card,**_): | ||
return get_server_jar(card['version-id']) |
7 changes: 3 additions & 4 deletions
7
Modules/VersionCategory.py → Project/modules/VersionCategory.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
from Core.project import Project | ||
from Interfaces import script,require | ||
from homepagebuilder.interfaces import script,require | ||
|
||
mcv = require('MinecraftVersions') # 需求前置 MinecraftVersions | ||
MANIFSET = mcv.get_manifset() | ||
FULL_VERSIONS = MANIFSET.get('versions') | ||
ID_LIST = [version.get('id') for version in FULL_VERSIONS] | ||
|
||
@script('VersionCategory') | ||
def version_category(cat_name,proj:Project,**_): | ||
def version_category(cat_name,context,**_): | ||
cards = list(filter(lambda card:isinstance(card.get('cats'),list) | ||
and cat_name in card.get('cats'), proj.get_all_card())) | ||
and cat_name in card.get('cats'), context.project.get_all_card())) | ||
cardrefs = [card['card_id'] for card in cards] | ||
cardrefs.sort(key=lambda ver:ID_LIST.index(ver.split(':')[1])) | ||
return str.join(';',cardrefs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from homepagebuilder.interfaces import require,script,format_code | ||
|
||
mcv = require('MinecraftVersions') # 需求前置 MinecraftVersions | ||
MANIFSET = mcv.get_manifset() | ||
FULL_VERSIONS = MANIFSET.get('versions') | ||
ID_LIST = [version.get('id') for version in FULL_VERSIONS] | ||
|
||
@script('VersionArchiveList') | ||
def version_achive_list(cat_name,context,card,**_): | ||
components = context.components | ||
cat_name = format_code(code = cat_name,data=card,context=context) | ||
cards = list(filter(lambda card:isinstance(card.get('cats'),list) | ||
and cat_name in card.get('cats'), context.get('project').get_all_card())) | ||
code = '<StackPanel Margin="8,2,8,15">' | ||
cards.sort(key=lambda card:ID_LIST.index(format_code(card['version-id'], | ||
data=card,context=context))) | ||
if len(cards) > 0 and cards[0]['version-type-id'] not in ['Release','April-Fools']: | ||
code += components['VersionLinks/Future'].toxaml(card={},context=context) | ||
for vercard in cards: | ||
if vercard.get('lack'): | ||
code += components['VersionLinks/Lack'].toxaml(card=vercard,context=context) | ||
else: | ||
code += components['VersionLinks/Common'].toxaml(card=vercard,context=context) | ||
code += '</StackPanel>' | ||
return code | ||
|
||
@script('VersionLatestList') | ||
def version_latest_list(context,**_): | ||
proj = context.get('project') | ||
components = context.get('components') | ||
code = '' | ||
for version_type in ['release','snapshot']: | ||
if latest_version := mcv.get_latest(version_type): | ||
vercard = proj.base_library.get_card(latest_version,False) | ||
code += components['VersionLinks/Latest'].toxaml(card=vercard,context=context) | ||
return code |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...urces/Components/VersionLinks/Common.xaml → ...tures/components/VersionLinks/Common.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<local:MyListItem Margin="${@IF|${important-version}|10,1,10,1|40,1,10,1}" ToolTip="${version-type} 点击查看该版本更新日志" | ||
Logo="${list-icon}" Title="${version-id}" Info="${@IF|${intro}|${intro}|${version-type}}" | ||
EventType="打开帮助" EventData="https://news.bugjump.net/VersionDetail.json?ver=${version-id}" Type="Clickable" /> | ||
EventType="打开帮助" EventData="https://${domain}/VersionDetail.json?ver=${version-id}" Type="Clickable" /> |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...urces/Components/VersionLinks/Latest.xaml → ...tures/components/VersionLinks/Latest.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<local:MyListItem Margin="10,1,10,1" ToolTip="最新${version-type} 点击查看该版本更新日志" | ||
Logo="${list-icon}" Title="最新${version-type} - ${version-id}" Info="${@IF|${intro}|${intro}|${version-type}}" | ||
EventType="打开帮助" EventData="https://news.bugjump.net/VersionDetail.json?ver=${version-id}" Type="Clickable" /> | ||
EventType="打开帮助" EventData="https://${domain}/VersionDetail.json?ver=${version-id}" Type="Clickable" /> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.