Skip to content

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.

2 participants