-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into server-https-support
- Loading branch information
Showing
86 changed files
with
3,411 additions
and
40,875 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: acmas | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: acmas | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"head-script-disabled": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"python.analysis.typeCheckingMode": "off", | ||
"liveServer.settings.port": 5501 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# DO NOT UPLOAD ANY CHANGES TO GITHUB! | ||
DATABASE=postgres | ||
DEBUG=1 | ||
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1] www.acmas.systems acmas.systems | ||
DJANGO_ALLOWED_HOSTS='localhost 127.0.0.1 [::1] 52.55.52.58 www.acmas.systems acmas.systems' | ||
DJANGO_EMAIL=[email protected] | ||
DJANGO_PASS=password | ||
DJANGO_USER=acmas_admin | ||
GOOGLE_ADSENSE_ID=INSERT_ID_HERE | ||
GOOGLE_ADSENSE_URL=https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client= | ||
GOOGLE_ANALYTICS_ID=INSERT_ID_HERE | ||
GOOGLE_ANALYTICS_URL=https://www.googletagmanager.com/gtag/js?id= | ||
POSTGRES_DB=acmas_db | ||
POSTGRES_PASSWORD=PASSWORD | ||
POSTGRES_USER=acmas_admin | ||
SECRET_KEY=SECRET_KEY | ||
SQL_DATABASE=acmas_db | ||
SQL_ENGINE=django.db.backends.postgresql | ||
SQL_HOST=db | ||
SQL_PASSWORD=PASSWORD | ||
SQL_PORT=5432 | ||
SQL_USER=acmas_admin |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# from django.contrib import admin | ||
from django.contrib import admin | ||
|
||
# Register your models here. | ||
from .models import Course, Question, University, UploadedFile, User | ||
|
||
admin.site.register(Question) | ||
admin.site.register(University) | ||
admin.site.register(Course) | ||
admin.site.register(UploadedFile) | ||
admin.site.register(User) | ||
|
||
admin.site.site_header = "ACMAS Admin" | ||
admin.site.site_title = "ACMAS Admin Portal" | ||
admin.site.index_title = "Welcome to the ACMAS Administration Portal" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<span class="button-component pt-2"> | ||
{% if component_type == "primary" %} | ||
<button type="submit" class="px-4 py-2 rounded-xl text-white text-semibold text-lg bg-blue-600 hover:bg-blue-700 transition ease-in duration-200" value="{{ value }}" name="{{ name }}">{{ text }}</button> | ||
{% elif component_type == "secondary" %} | ||
<button type="submit" class="px-4 py-2 rounded-xl text-gray-700 text-semibold border border-gray-300 text-lg bg-white hover:bg-gray-100 transition ease-in duration-200" value="{{ value }}" name="{{ name }}">{{ text }}</button> | ||
{% endif %} | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from django_components import component | ||
|
||
|
||
@component.register("button") | ||
class Button(component.Component): | ||
template_name = "button/button.html" | ||
|
||
def get_context_data(self, text, component_type, value, name=""): | ||
return { | ||
"text": text, | ||
"component_type": component_type, | ||
"value": value, | ||
"name": name, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="field-component p-0.5"> | ||
{% if component_type == "input" %} | ||
<input type="file" class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400" name="{{ name }}"> | ||
{% else %} | ||
<input type="text" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" name="{{ name }}" placeholder="{{ placeholder }}"> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from django_components import component | ||
|
||
|
||
@component.register("field") | ||
class Field(component.Component): | ||
template_name = "field/field.html" | ||
|
||
def get_context_data(self, placeholder, name, component_type): | ||
return { | ||
"placeholder": placeholder, | ||
"name": name, | ||
"component_type": component_type, | ||
} |
Oops, something went wrong.