Skip to content

Announcement banner / Expandable Server data sysem #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

splice-7
Copy link
Collaborator

@splice-7 splice-7 commented Mar 13, 2023

Adds a file (data.json) that can be modified during runtime by admins (set in environment variables) that can control few things in Aspine, such as the announcement banner. It 100% works so far (at least on my machine) but however, there are a few issues:

  • The admin envion var is obtained with process.env['admins'] and is formatted as "admins": "[1234567, 1234567]" (This might not be compatible with the ICTS' hosting and may need to be changed)
  • Client-side javascript is... not the cleanest (getData functions are defined at two places, might want to merge the two)

Currently, I'm hosting it on Replit (check it out here) and the serverdata is requestable via this URL. You can see how I format stuff with the previous link.

(Please note that this is my first ever pull request and I have no clue if I'm doing it correctly)

@splice-7 splice-7 requested a review from jshaw-7 March 24, 2023 12:32
@splice-7 splice-7 added enhancement New feature or request ICTS labels Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ICTS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant