From 056800f68fd97d3814caa1259283dbc4ba1723a0 Mon Sep 17 00:00:00 2001 From: notashelf Date: Mon, 4 Apr 2022 20:07:32 +0300 Subject: [PATCH] rename CONSTANTS to constants for consistency --- src/CONSTANTS.ts.example | 33 ---------------------- src/{constants.ts => constants.ts.example} | 0 2 files changed, 33 deletions(-) delete mode 100644 src/CONSTANTS.ts.example rename src/{constants.ts => constants.ts.example} (100%) diff --git a/src/CONSTANTS.ts.example b/src/CONSTANTS.ts.example deleted file mode 100644 index 09c230e..0000000 --- a/src/CONSTANTS.ts.example +++ /dev/null @@ -1,33 +0,0 @@ -import { templatePathBuilder } from "./utils/utils" - -/* -------------------- USER CONSTANTS ------------------------ -*/ -// Variable to set DICK to run as a submodule to ASS or seperately: true = submodule | false = seperate -export const DICK_SUBMODULE = false - -// * ------------------- ASS HOST INFORMATION ---------------------------- -// Boolean variable if your ASS is secured with HTTPS: true = https | false = http -export const ASSSECURE = false -// This is the domain your ASS is hosted at: "127.0.0.1" | "cdn.domain.com" -export const ASSDOMAIN = "127.0.0.1:40115" -// If running DICK in seperate mode, it will need to know where your ASS is installed -export const ASSLOCATION = "../ass" - -// * ------------------- STAFF ID CONSTANTS ---------------------------- <--- this will eventually be moved away from constants -// Array of all USERNAMES in your ASS auth.json file that will have admin access: ["ass", "dick", "frank"] -export const STAFF_IDS = ["ass"] - - -/* -------------------- SYSTEM CONSTANTS ------------------------ -*/ -// * ------------------- TEMPLATE PATH CONSTANTS ------------------------ -export const TEMPLATE = { - USER: templatePathBuilder("/user.ejs"), - PUBLIC: templatePathBuilder("/public.ejs"), - ERRORS: { - 403: templatePathBuilder("/errors/403.ejs"), - 404: templatePathBuilder("/errors/404.ejs") - } -} diff --git a/src/constants.ts b/src/constants.ts.example similarity index 100% rename from src/constants.ts rename to src/constants.ts.example