mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-12 19:40:02 -04:00
Fix the plugin stuff
This commit is contained in:
parent
fc1a07b129
commit
bf52d776ff
2 changed files with 2 additions and 7 deletions
|
@ -17,8 +17,3 @@ port = 5432
|
|||
port = 8080
|
||||
wisp = true
|
||||
logging = true # Disable for the tons & tons of logs to go away (useful for debugging but otherwise eh)
|
||||
|
||||
[server.rammerhead] # Don't touch this section unless you KNOW what you are doing
|
||||
reverseproxy = true
|
||||
localstorage_sync = true
|
||||
http2 = true
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Settings, settings } from "@utils/settings/index";
|
|||
import Parent from "./Parent.svelte";
|
||||
async function getItem(item) {
|
||||
try {
|
||||
const response = await fetch(`/api/packages/${item.name.toLowerCase()}`);
|
||||
const response = await fetch(`/api/packages/${item.name}`);
|
||||
const data = await response.json();
|
||||
return {
|
||||
...data,
|
||||
|
@ -20,7 +20,7 @@ async function getAssets() {
|
|||
const promises = items.map(getItem);
|
||||
const dataArray = await Promise.all(promises);
|
||||
let accumulatedData = dataArray.filter((data) => data !== null);
|
||||
accumulatedData = accumulatedData.filter(({ remove }) => remove === true);
|
||||
accumulatedData = accumulatedData.filter(({ remove }) => remove !== true);
|
||||
console.log(JSON.stringify(accumulatedData));
|
||||
return accumulatedData;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue