Giter Club home page Giter Club logo

dashboard's Introduction

2PG Dashboard

Dashboard to customize 2PG; made with TypeScript + Angular 9

Discord

2PG Bot Series - https://www.youtube.com/watch?v=rYpR0CiEGgk&list=PLGfT2ttRbfixMStpAhPD4pKBQN9wjJmbP&index=1

2PG Dashboard Series - https://www.youtube.com/watch?v=rYpR0CiEGgk&list=PLGfT2ttRbfizIr60zU_S_6_i8O3xmP9ia&index=1

Used by: 2PG, 3PG, 6PG, DBots, DList, DClone

Guild Dashboard Audit Log

Prerequisites

  • Know how to use JavaScript, TypeScript, and Angular 9

Redirect URIs

Redirects

If you change your redirects, regen your application secret.

Further Notes

  • Channels and roles are publically available through the API
    • Used to provide more user-friendly select options
    • This is to also to avoid rate limiting
  • Everything within the /src folder is public
    • Keep the API, Server, and bot isolated to avoid extra bundle size, or your bot tokens being bundled on the client side (not good)
    • Just avoid associating any tokens or secrets with the webapp itself
    • This also applies to the bot
  • If renaming config files, make sure to .gitignore them
  • This is done by default, but I've made this mistake many times

Installation

Use npm install && npm install -g @angular/cli@latest for the installation

Angular

This project was generated with Angular CLI version 9.0.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

dashboard's People

Contributors

theadamjr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dashboard's Issues

Glitch website

An unhandled exception occurred: Script file node_modules/jquery/dist/jquery.min.js does not exist.
See "/tmp/ng-Cyd3bs/angular-errors.log" for further details.

Request

Hello,

Can you please send me the config file, git ignore doesn't seem to work for me.

Thanks

Error log cant send in discord

(node:768) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 10)
(node:768) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'access_token' of undefined
at /rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/disco-oauth/4.2.7/node_modules/disco-oauth/lib/client.js:165:25
at new Promise ()
at Client.getUser (/rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/disco-oauth/4.2.7/node_modules/disco-oauth/lib/client.js:158:12)
at /app/src/api/routes/api-routes.ts:32:35
at step (/app/src/api/routes/api-routes.ts:33:23)
at Object.next (/app/src/api/routes/api-routes.ts:14:53)
at /app/src/api/routes/api-routes.ts:8:71
at new Promise ()
at __awaiter (/app/src/api/routes/api-routes.ts:4:12)
at /app/src/api/routes/api-routes.ts:29:37
at Layer.handle [as handle_request] (/rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/layer.js:95:5)
at next (/rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/layer.js:95:5)
at /rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/index.js:335:12)
(node:768) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 12)
[1] Kept https://buzzdash.glitch.me alive.
[2] Kept https://buzzdash.glitch.me alive.
[3] Kept https://buzzdash.glitch.me alive.
[4] Kept https://buzzdash.glitch.me alive.

[email protected] start:bot /app
ts-node src/bot.ts
[email protected] start:bot /app
ts-node src/bot.ts
[20:37:52] INFO [OTHER] API is live on port 3000
[20:38:20] INFO [EVENTS] Loaded: 8 handlers
[20:38:20] INFO [EVENTS] Loaded: 4 custom handlers
(node:1229) UnhandledPromiseRejectionWarning: AbortError: The user aborted a request.
at RequestHandler.execute (/rbd/pnpm-volume/c9d30868-6572-497f-8930-4a06af53d3ff/node_modules/.registry.npmjs.org/discord.js/12.3.1/node_modules/discord.js/src/rest/RequestHandler.js:107:21)
at processTicksAndRejections (internal/process/task_queues.js:88:5)
(node:1229) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:1229) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[20:38:22] INFO [BOT] Connected to db
[1] Kept https://buzzdash.glitch.me alive.
[2] Kept https://buzzdash.glitch.me alive.
[3] Kept https://buzzdash.glitch.me alive.
[4] Kept https://buzzdash.glitch.me alive.

Cannot port forward dashboard

So i have both bot and dashboard on my windows server. Both are open in cmds and i can acces to bot's page with domain.com
and its all normal. But if i try to get to dashboard i cannot get to panel.domain.com and its says page doesnt exist but i have all port forwarded and setted up in xampp. I can acces to both of it on localhost on the server. Can you explain how can i put dashboard to a domain because i dont understand it or i am just dumb. Thanks again for making this awesome bot <3

connect: Connection Refused

Whenever I run ng serve on the dashboard I get "connect: Connect Refused" error. My host is replit just so you know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.