diff --git a/README.md b/README.md index a34d943..89940c9 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ SOURCE - WEBSITE - DISCORD
- +

diff --git a/ads.txt b/ads.txt new file mode 100644 index 0000000..90cc578 --- /dev/null +++ b/ads.txt @@ -0,0 +1 @@ +google.com, pub-1482194878074817, DIRECT, f08c47fec0942fa0 \ No newline at end of file diff --git a/assets/scripts/main.js b/assets/scripts/main.js deleted file mode 100644 index 4dc5df7..0000000 --- a/assets/scripts/main.js +++ /dev/null @@ -1,47 +0,0 @@ -/* Used across the Clockwork main pages */ - -document.querySelector(".navbar").innerHTML = `Discord | -© 2023 Redstone Network` - -// for /get-started/ -if (document.location.pathname.startsWith("/get-started")) { - const url = "https://"+document.location.hostname+"/os/" - const htmlPage = ` - - - - - - - - `.replace(/\n/g,"").replace(/ /g,""); - - const aboutBlanker = `javascript: - var win = window.open("","_blank","popup=yes"); - win.location.origin = 'https://google.com'; - win.document.write(\` - - - - - - \`);` - document.querySelector("#blanker").href = aboutBlanker; - document.querySelector("#file").href = "data:text/html,"+htmlPage; - document.querySelector("#file2").href = "data:text/html,"+htmlPage; -} \ No newline at end of file diff --git a/guidelines/index.html b/guidelines/index.html deleted file mode 100644 index 3064a3e..0000000 --- a/guidelines/index.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - -Clockwork Store Guidelines - - - - - -

Clockwork Store Guidelines

- -

-This is a list of guidelines and rules that your app must follow to be able to be added to the Store. -

- -

Advertisements and Analytics

- - -

Negativity and Hate

- - -

Sexual Content

- - -

App Duties

- - - - \ No newline at end of file diff --git a/assets/apps/copper.json b/public/assets/apps/copper.json similarity index 91% rename from assets/apps/copper.json rename to public/assets/apps/copper.json index 2e7a00d..f0bf36e 100644 --- a/assets/apps/copper.json +++ b/public/assets/apps/copper.json @@ -5,6 +5,6 @@ "encodedUrl": "no", "icon": "https://www.metalsdepot.com/assets/files/Catalog_Photos/copper-round-bar.webp", "version": "1.0.0", - "author": "LukasExists", + "author": "Redstone-Network", "permissions": [] } \ No newline at end of file diff --git a/assets/apps/devtest.json b/public/assets/apps/devtest.json similarity index 100% rename from assets/apps/devtest.json rename to public/assets/apps/devtest.json diff --git a/assets/apps/muenster.json b/public/assets/apps/muenster.json similarity index 94% rename from assets/apps/muenster.json rename to public/assets/apps/muenster.json index 8a64bf5..2c33f86 100644 --- a/assets/apps/muenster.json +++ b/public/assets/apps/muenster.json @@ -5,6 +5,6 @@ "encodedUrl": "yes", "icon": "https://redstonenw.vercel.app/assets/clockwork/muenster.png", "version": "v2.0.0", - "author": "LukasExists", + "author": "Redstone-Network", "permissions": ["installApp"] } \ No newline at end of file diff --git a/assets/apps/rammer.json b/public/assets/apps/rammer.json similarity index 93% rename from assets/apps/rammer.json rename to public/assets/apps/rammer.json index debbb00..49e3cfe 100644 --- a/assets/apps/rammer.json +++ b/public/assets/apps/rammer.json @@ -5,6 +5,6 @@ "encodedUrl": "yes", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTWydnTN7LkHkCONWHU_k6W6Fx7Yj4ByRIubvxZZnXDoA&s", "version": "1.0.0", - "author": "LukasExists", + "author": "Redstone-Network", "permissions": [] } \ No newline at end of file diff --git a/assets/apps/store.json b/public/assets/apps/store.json similarity index 100% rename from assets/apps/store.json rename to public/assets/apps/store.json diff --git a/assets/images/apps.png b/public/assets/images/apps.png similarity index 100% rename from assets/images/apps.png rename to public/assets/images/apps.png diff --git a/assets/images/appstore.png b/public/assets/images/appstore.png similarity index 100% rename from assets/images/appstore.png rename to public/assets/images/appstore.png diff --git a/assets/images/banner.svg b/public/assets/images/banner.svg similarity index 100% rename from assets/images/banner.svg rename to public/assets/images/banner.svg diff --git a/assets/images/discord.png b/public/assets/images/discord.png similarity index 100% rename from assets/images/discord.png rename to public/assets/images/discord.png diff --git a/assets/images/home.png b/public/assets/images/home.png similarity index 100% rename from assets/images/home.png rename to public/assets/images/home.png diff --git a/assets/images/icon.png b/public/assets/images/icon.png similarity index 100% rename from assets/images/icon.png rename to public/assets/images/icon.png diff --git a/assets/images/ogbanner.png b/public/assets/images/ogbanner.png similarity index 100% rename from assets/images/ogbanner.png rename to public/assets/images/ogbanner.png diff --git a/assets/images/settings.png b/public/assets/images/settings.png similarity index 100% rename from assets/images/settings.png rename to public/assets/images/settings.png diff --git a/assets/scripts/clockwork.js b/public/assets/scripts/clockwork.js similarity index 100% rename from assets/scripts/clockwork.js rename to public/assets/scripts/clockwork.js diff --git a/public/assets/scripts/main.js b/public/assets/scripts/main.js new file mode 100644 index 0000000..3e8d847 --- /dev/null +++ b/public/assets/scripts/main.js @@ -0,0 +1,83 @@ +/* Used across the Clockwork main pages */ + +document.querySelector(".navbar").innerHTML = `Home | +Store Guidelines | +Terms of Use | +Privacy Policy | +Discord | +Convert v1 apps to v2 | +Contact Support | +© 2023 Redstone Network` + + +// for /converter/ +function generateV2Code() { + var v1c = document.querySelector("textarea").value; + + var appName = v1c.match(/title {0,1}= {0,1}"([^"]+)"/); + if (appName) appName = appName[1]; + + var appLink = v1c.match(/link {0,1}= {0,1}"([^"]+)"/); + if (appLink) appLink = appLink[1]; + + if (!appName || !appLink) { + alert("Invalid app!"); + throw "InvalidApp"; + } + + var v2c = `{ + "name": "${appName}", + "desc": "Converted from v1 to v2", + "url": "${appLink}", + "encodedUrl": "no", + "icon": "https://redstone-nw.netlify.app/assets/icon.png", + "author": "Type your name here", + "permissions": [] +}`; + + document.querySelector("textarea").value = v2c; + document.querySelector("#instruction").innerHTML = "Now, you can copy the contents of the textarea into a .JSON file and save it somewhere. Make sure the service you use serves the correct Content-Type headers for .JSON files, such as Github Pages or Vercel."; +} + +// for /get-started/ +if (document.location.pathname.startsWith("/get-started")) { + const url = "https://"+document.location.hostname+"/os/" + const htmlPage = ` + + + + + + + + `.replace(/\n/g,"").replace(/ /g,""); + + const aboutBlanker = `javascript: + var win = window.open("","_blank","popup=yes"); + win.location.origin = 'https://google.com'; + win.document.write(\` + + + + + + \`);` + document.querySelector("#blanker").href = aboutBlanker; + document.querySelector("#file").href = "data:text/html,"+htmlPage; + document.querySelector("#file2").href = "data:text/html,"+htmlPage; +} \ No newline at end of file diff --git a/assets/scripts/os.js b/public/assets/scripts/os.js similarity index 100% rename from assets/scripts/os.js rename to public/assets/scripts/os.js diff --git a/assets/scripts/testplugin.js b/public/assets/scripts/testplugin.js similarity index 100% rename from assets/scripts/testplugin.js rename to public/assets/scripts/testplugin.js diff --git a/assets/styles/main.css b/public/assets/styles/main.css similarity index 86% rename from assets/styles/main.css rename to public/assets/styles/main.css index 1488685..4c44f61 100644 --- a/assets/styles/main.css +++ b/public/assets/styles/main.css @@ -131,4 +131,23 @@ summary::marker { padding: 0; text-align: center; font-family: "Varela Round", Arial, sans-serif; +} +textarea { + background-color: #111; + color: white; + border: 1px solid #222; + width: 100%; + height: 400px; + outline: none; + font-family: 'Courier New', Courier, monospace; +} + +input { + background-color: #111; + color: white; + border: 1px solid #222; + border-radius: 0; + outline: none; + font-size: 16px; + font-family: "Roboto Flex", "Roboto", Arial, sans-serif; } \ No newline at end of file diff --git a/assets/styles/os.css b/public/assets/styles/os.css similarity index 100% rename from assets/styles/os.css rename to public/assets/styles/os.css diff --git a/converter/index.html b/public/converter/index.html similarity index 57% rename from converter/index.html rename to public/converter/index.html index 3db36b2..158b0dd 100644 --- a/converter/index.html +++ b/public/converter/index.html @@ -9,7 +9,7 @@ - + @@ -20,7 +20,19 @@

Convert v1 apps to v2

- This tool will help you easily convert your v1 apps to v2 apps! + This tool will help you easily convert your v1 apps to v2 apps. The big change between v1 apps and v2 apps is that v2 apps use .JSON files, rather than .JS files, which helps with security. You'll still be able to add JavaScript using the plugins system. +

+

+ v2 apps also don't require the URL to the file, nor do they require a unique ID. All they need is the name, the url to embed into Clockwork, and a yes or no as to whether the url's encrypted. +

+

+ Paste the contents of the .JS file in the text area below, then click the Go button. +

+

+ +

+

+