ferks-fk / pterodactyl-autothemes Goto Github PK
View Code? Open in Web Editor NEWThemes Installation Script for Pterodactyl 0.7 and 1.x
License: MIT License
Themes Installation Script for Pterodactyl 0.7 and 1.x
License: MIT License
Please do real theme not a bugged css path
Its literaly imposible to read the css file do make a modification
Also if you do a yarn build/yarn watch the theme is dead
So bad
You forget to mention notil for the dracula and enola them etc
Tried installing theme but got error
Os - Debain 10
ERROR in resources/scripts/components/elements/AceEditor.tsx:2:23
TS2307: Cannot find module 'use-react-router' or its corresponding type declarations.
1 | import React, { useCallback, useEffect, useState, lazy } from 'react';
> 2 | import useRouter from 'use-react-router';
| ^^^^^^^^^^^^^^^^^^
3 | import { ServerContext } from '@/state/server';
4 | import ace, { Editor } from 'brace';
5 | import getFileContents from '@/api/server/files/getFileContents';
ERROR in resources/scripts/components/elements/AceEditor.tsx:4:29
TS2307: Cannot find module 'brace' or its corresponding type declarations.
2 | import useRouter from 'use-react-router';
3 | import { ServerContext } from '@/state/server';
> 4 | import ace, { Editor } from 'brace';
| ^^^^^^^
5 | import getFileContents from '@/api/server/files/getFileContents';
6 | import styled from 'styled-components';
7 |
ERROR in resources/scripts/components/elements/SuspenseSpinner.tsx:8:42
TS2322: Type '"normal"' is not assignable to type 'SpinnerSize | undefined'.
6 | fallback={
7 | <div className={'mx-4 w-3/4 mr-4 flex items-center justify-center'}>
> 8 | <Spinner centered={true} size={'normal'}/>
| ^^^^
9 | </div>
10 | }
11 | >
ERROR in resources/scripts/plugins/useDeepMemo.ts:2:21
TS7016: Could not find a declaration file for module 'lodash-es/isEqual'. '/var/www/pterodactyl/node_modules/lodash-es/isEqual.js' implicitly has an 'any' type. Try `npm i --save-dev @types/lodash-es` if it exists or add a new declaration (.d.ts) file containing `declare module 'lodash-es/isEqual';`
1 | import { useRef } from 'react';
> 2 | import isEqual from 'lodash-es/isEqual';
| ^^^^^^^^^^^^^^^^^^^
3 |
4 | export const useDeepMemo = <T, K> (fn: () => T, key: K): T => {
5 | const ref = useRef<{ key: K, value: T }>();
ERROR in resources/scripts/plugins/useServer.ts:6:69
TS2345: Argument of type '(DependencyList | undefined)[]' is not assignable to parameter of type '(prev: Server, next: Server) => boolean'.
Type '(DependencyList | undefined)[]' provides no match for the signature '(prev: Server, next: Server): boolean'.
4 |
5 | const useServer = (dependencies?: DependencyList): Server => {
> 6 | return ServerContext.useStoreState(state => state.server.data!, [ dependencies ]);
| ^^^^^^^^^^^^^^^^
7 | };
8 |
9 | export default useServer;
error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When I run the script, it stop after the apt get update command
* Pterodactyl-AutoThemes Script @ v1.2
* Copyright (C) 2021 - 2022, Ferks-FK.
* https://github.com/Ferks-FK/Pterodactyl-AutoThemes
* This script is not associated with the official Pterodactyl Project.
######################################################################
* Which theme do you want to install?
[0] Restore Panel Backup (To remove some theme and restore your old panel.)
[1] Install Dracula (Only 1.6.6 and 1.7.0)
[2] Install Enola (Only 1.6.6 and 1.7.0)
[3] Install Twilight (Only 1.6.6 and 1.7.0)
[4] Install Zing Theme (Only 1.6.6 and 1.7.0)
[5] Install Flanco Theme (Only 1.6.6 and 1.7.0)
[6] Cancel Installation
* Input 0-6: 1
###############################################
* Looking for your pterodactyl installation...
###############################################
##################################################################
* Installation of the panel found, continuing the installation...
##################################################################
#########################################################
* Checking if the addon is compatible with your panel...
#########################################################
#######################
* Compatible Version!
#######################
##############################
* Installing dependencies...
##############################
## Installing the NodeSource Node.js 16.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://asi-fs-d.contabo.net/ubuntu focal InRelease
Hit:2 http://asi-fs-d.contabo.net/ubuntu focal-updates InRelease
Hit:3 http://asi-fs-d.contabo.net/ubuntu focal-backports InRelease
Ign:4 http://ppa.launchpad.net/certbot/certbot/ubuntu focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Err:6 http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release
404 Not Found [IP: 91.189.95.85 80]
Get:7 https://mega.nz/linux/MEGAsync/xUbuntu_20.04 ./ InRelease [2,441 B]
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:9 http://rpms.litespeedtech.com/debian focal InRelease
Hit:10 http://rpms.litespeedtech.com/debian focal Release
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting
Make dracula theme work for 1.9x pterodactyl version.
can you please update the theme Argon to the new version v0.8.5
Please update it to the latest version that panel supports
Possibility for themes to get updated to pterodactyl 1.9
?
ERROR in resources/scripts/components/server/files/FileViewer.tsx:54:60
TS2322: Type '{ details: boolean; key: string; file: FileObject; }' is not assignable to type 'IntrinsicAttributes & { file: FileObject; }'.
Property 'details' does not exist on type 'IntrinsicAttributes & { file: FileObject; }'.
52 | {
53 | sortFiles(files.slice(0, maxFiles)).map(file => (
54 |
| ^^^^^^^
55 | ))
56 | }
57 |
error Command failed with exit code 2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.