from browser import document as doc, html, window as win from priz_md import mark content = eval(open("json/projects.json").read()) element = doc["projs"] for key in content: element <= html.DIV( mark(content[key]["nam"])+"<br>", Class = "blue", Id = "projects_"+content[key]["nam"] ) element <= html.DIV( mark(content[key]["dsc"])+"<br>", Class = "lgrey" ) element <= html.DIV( mark(content[key]["oth"])+"<br>", Class = "dgry" ) element <= html.DIV( mark(content[key]["lnk"])+"<br>", style = {"color": "#ff0088 !important"} )
from priz_md import mark coms = eval(open('json/commands.json').read()) doc["labels"].innerHTML = 'COM|'.join(list(coms)) + "COM" element = doc["changes"] lists = doc["tabby"] commands = [(com, coms[com]["cat"], coms[com]["brf"], coms[com]["usg"], coms[com]["dsc"], '`;]' + '`, `;]'.join(coms[com]["als"]) + '`' if coms[com]["als"] else "`[NONE]`") for com in coms] for com, cat, brf, usg, dsc, als in commands: lists <= html.BUTTON( f"{cat} - ;]{com}", Class="tabby_link textR wMIN", Id=com + "COM") element <= html.DIV(mark(f"""\ &&&THE `;]{com.strip()}` COMMAND &&&&{brf.strip()} &&&&CATAGORY ] {cat.strip()} &&&&&&ALIASES ] {als} >-~-< `{usg.strip()}` Usage Notes --- ;;; {dsc.strip()} ;;; """ + "#NOTICE ]# The {arg} stuff is a description of what to put, not what to write" ) + "<br>", Class="tabby_sect", Id="commands_" + com + "COM", style={"display": "none"}) win.comm()
from priz_md import mark from browser import document as doc, window as win, html import datetime as dt online = False when = "an unknown time" history = { "12x07_2019": "Discord is experiencing issues, and the bot was manually shut down", "11x20_2019": "Linux power settings are not set up - Resolved issue", "11x06_2019": "HDD died... waiting for a good SSD price to show up - Resolved issue", "10x31_2019": "There is a connection issue on my end - Resolved issue", "10x29_2019": "RAM usage is a bit high, so slow response times or even crashes may occur - Resolved issue", "10x22_2019": "The `embedify` module has a `SyntaxError` - Resolved issue", "10x21_2019": "There was a `NameError` issue in the main file - Resolved Issue", "10x17_2019": "PC was off [how?] - Resolved issue", "00x00_0000": "Thats the beginning of the history" } for key in history: history[key] = mark(history[key]) doc["status"] <= html.DIV(key+" - "+history[key], Id="status_"+key, Class="content consect") doc["current_status"].innerHTML = "PRIZM IS " + ("ONLINE ;]" if online in [True, None] else "OFFLINE ;[") doc["issue"].innerHTML = "No issues here" if online else mark(history[list(history)[0]]) + "<br>Will be fixed at " + when
Too find many cool faces that the bot uses, please visit this [link]<https://discord.gg/NHqbnyc> ;] If you have Discord Nitro and want to use the sick ASCIImoji this bot comes with, please visit the \ [emoji server]<https://discord.gg/eYMyfcd> ;]""", "WTF IS THAT LOGO?_logo": """\ That logo is something that I made quite a while ago, except that version was much worse. \ This is iteration 3, with shiny colors and more glow. It should be a prism of light, \ except it actually looks more like the Minecraft Prismarine shard, \ ~which was definitely not what I was trying to improve in any way, shape or form~""", "WHO EVEN ARE YOU?_whoami": """\ Absolutely nobody. I don't exist and I never made anything. I'm an enthusiast, a programmer, and also non existent. I'm confused and don't know what to do, but this seems cool, so I'll continue doing it. Please keep in mind that I have no idea what I'm actually doing, so bugs will occur.""", "WHY IS THIS SITE LAGGY?_lag": """\ Actually, it's because I don't know how to web design. I just asked for opinions, and you can always submit \ your feedback over at [this link]<https://github.com/VoxelPrismatic/prizm.xyz/issues/new> ;]""", "WHEN ARE YOU WORKING ON IT?_work": """\ Alsmost always... I love working on it. Many changes and bug fixes are made every day""" } element = doc["about"] for key in content: element <= html.DIV( key.split("_")[0], Class="header", Id="about_" + key.split("_")[1]) element <= html.DIV(mark(content[key]), Class="content consect")