forked from randomuser691337/another-webdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nova@nova's optiplex - win8
committed
Aug 23, 2024
1 parent
82a79c4
commit df45903
Showing
9 changed files
with
231 additions
and
39 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 |
---|---|---|
|
@@ -643,5 +643,5 @@ var app = { | |
} | ||
}, | ||
} | ||
|
||
window.installApp = function(appn, appid, appscript, appico) | ||
app.cast.connection(30012) |
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
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,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>NovaStore App Store</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
<link rel="stylesheet" href="appstyle.css"> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<br> | ||
<br> | ||
<br> | ||
<div class="meta"> | ||
<img src="https://placehold.co/1024x1024/EEE/31343C" alt="" id="appico"> | ||
<div class="metaetc"> | ||
<h1 id="appn">AppName</h1> | ||
<h3 id="appdesc">AppDescription</h3> | ||
<h3 id="appdev">AppDeveloper</h3> - | ||
<h3 id="appcat">AppCategory</h3> | ||
<div class="btnrow"> | ||
<button class="b1">Install</button> | ||
<button class="b1">QuickRun</button> | ||
</div> | ||
</div> | ||
</div> | ||
<iframe sandbox="" frameborder="0" id="appAbout"> | ||
</iframe> | ||
</main> | ||
<script src="app.js"></script> | ||
</body> | ||
|
||
</html> |
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,25 @@ | ||
var appid = window.location.search.split("?")[1] | ||
document.addEventListener('DOMContentLoaded', async function() { | ||
document.querySelector("iframe").src=`https://novaos-appstore-repo.pages.dev/app/${appid}` | ||
var repoResponse = await fetch('https://novaos-appstore-repo.pages.dev/appstore.json'); | ||
repoResponse = await repoResponse.json(); | ||
repoResponse.applications.forEach(app => { | ||
if(app.id == appid){ | ||
console.log(app) | ||
var categories = app.category.split(",") | ||
// filter categories to remove all starting with "backend" | ||
categories = categories.filter(category => !category.startsWith("backend")) | ||
// make all categories sentence case | ||
categories = categories.map(category => category.charAt(0).toUpperCase() + category.slice(1)) | ||
// remove empty categories | ||
categories = categories.filter(category => category != "") | ||
// join categories with a comma | ||
categories = categories.join(", ") | ||
console.log(categories) | ||
document.querySelector('#appn').innerText = app.name | ||
document.querySelector('#appdesc').innerText = app.description | ||
document.querySelector('#appdev').innerText = `${app.author}` | ||
document.querySelector('#appcat').innerText = `${categories}` | ||
} | ||
}); | ||
}) |
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,50 @@ | ||
#banner{ | ||
width: 60vw; | ||
height: calc(60vw / 2); | ||
object-fit: cover; | ||
z-index: -1; | ||
} | ||
main{ | ||
position: absolute; | ||
top:0px; | ||
left:0px; | ||
width: 100vw; | ||
height: 100vh; | ||
overflow: auto; | ||
display: flex; | ||
vertical-align: top !important; | ||
justify-content: start !important; | ||
flex-direction: column; | ||
} | ||
#appico{ | ||
width: 150px; | ||
height: 150px; | ||
border-radius: 100%; | ||
grid-area: ico; | ||
} | ||
.meta{ | ||
display: grid; | ||
grid-template-columns: 150px 400px; | ||
grid-template-areas: 'ico' 'etc'; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
.metaetc{ | ||
text-align: left; | ||
padding-left:10px; | ||
} | ||
.metaetc *{ | ||
margin-block-end: 0px; | ||
} | ||
.metaetc h3{ | ||
display: inline; | ||
font-style: italic; | ||
} | ||
.b1{ | ||
font-size: 1.2em; | ||
display: inline-block; | ||
} | ||
#appAbout{ | ||
width: 75vw; | ||
height: calc(100% - 10px) | ||
} |
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,46 @@ | ||
document.addEventListener('DOMContentLoaded', async function() { | ||
var repoResponse = await fetch('https://novaos-appstore-repo.pages.dev/appstore.json'); | ||
repoResponse = await repoResponse.json(); | ||
var featuredApps = [] | ||
var officialApps = [] | ||
repoResponse.applications.forEach(app => { | ||
if(app.category.split(",").includes("backendTagFeatured") && featuredApps.length < 4){ | ||
featuredApps.push(app) | ||
} | ||
else if(app.category.split(",").includes("backendTagOfficial")){ | ||
officialApps.push(app) | ||
} | ||
}); | ||
var featuredAppsContainer = document.querySelector('.carousel__container'); | ||
featuredApps.forEach((app, index) => { | ||
featuredAppsContainer.children[index].querySelector('img').src = app.banner; | ||
featuredAppsContainer.children[index].classList.remove('hidden'); | ||
}) | ||
document.querySelectorAll('.carousel__item.hidden').forEach(item => { | ||
item.remove(); | ||
}); | ||
document.querySelector('.carouselArea').style.display = featuredAppsContainer.children.length > 0 ? 'block' : 'none'; | ||
var officialAppsContainer = document.querySelector('.officialApps'); | ||
officialApps.forEach(app => { | ||
// design for app cards | ||
// <div class="application"> | ||
// <img src="Frame 3.png" alt="image1"> | ||
// <h3>Application 1</h3> | ||
// <p>Description of Application 1</p> | ||
// </div> | ||
var appDiv = document.createElement('div'); | ||
appDiv.classList.add('application'); | ||
var appImg = document.createElement('img'); | ||
appImg.src = app.banner; | ||
appImg.alt = app.name; | ||
var appName = document.createElement('h3'); | ||
appName.innerText = app.name; | ||
var appDesc = document.createElement('p'); | ||
appDesc.innerText = app.description; | ||
appDiv.appendChild(appImg); | ||
appDiv.appendChild(appName); | ||
appDiv.appendChild(appDesc); | ||
officialAppsContainer.appendChild(appDiv); | ||
}) | ||
|
||
}) |
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