move images into their own directory

pull/2/head
notashelf 3 years ago
parent d1d520817a
commit be014f7d62
No known key found for this signature in database
GPG Key ID: C800E8AA68FA205E

@ -1,12 +1,12 @@
<br />
<p align="center">
<a href="dick_example_2.png">
<img src="dick_example_2.png" alt="Login">
<a href="assets/dick_example_2.png">
<img src="assets/dick_example_2.png" alt="Login">
</a>
<details align="center">
<summary>Profile Preview</summary>
<a href="dick_example_1.png">
<img src="dick_example_1.png" alt="Profile">
<a href="assets/dick_example_1.png">
<img src="assets/dick_example_1.png" alt="Profile">
</a>
</details>
@ -82,16 +82,19 @@ Inside this file, is some basic configuration you can change for your set up. Th
| Variable | Description |
| --------------------------------------------- | :---------------------: |
| `DICK_SUBMODULE = false` | Put this to true if you wish to run DICK as an ASS submoduke, false if seperate |
| `ASSLOCATION = "../ass"` | If running DICK seperately, DICK will use this to find your ASS install folder |
| `ASSSECURE = false` | Put this to true if you are running ASS behind a domain with HTTPS,. false if HTTP |
| `ASS_LOCATION = "../ass"` | If running DICK seperately, DICK will use this to find your ASS install folder |
| `ASS_SECURE = false` | Put this to true if you are running ASS behind a domain with HTTPS,. false if HTTP |
| `ASSDOMAIN = "127.0.0.1:40115"` | Put this to your ASS domain. Can be an ip, or domain for example `https://cdn.mydomain.com` |
| `STAFF_IDS = ["ass"]` | Change this to whatever your username is in your ASS `auth.json` file. Default user in ASS, is `ass` |
### Running
#### Development
<details>
<summary><sub>Open to view the development set up steps</sub></summary>
<summary>
<sub>Open to view the development set up steps</sub>
</summary>
1. Create a folder, call it whatever you wish
2. Install, and run ASS https://github.com/tycrek/ass#installation (This will create an `ass` folder)
@ -107,11 +110,13 @@ Inside this file, is some basic configuration you can change for your set up. Th
#### Production
<details>
<summary><sub>Open to view the production set up steps</sub></summary><br/>
<summary>
<sub>Open to view the production set up steps</sub>
</summary><br/>
1. Create a folder, call it whatever you wish
2. Install, and run ASS https://github.com/tycrek/ass#installation (This will create an `ass` folder)
3. Go back into the folder you created and clone this repo `git clone https://github.com/Facinorous-420/dick`
3. Go back into the folder you created and clone this repo `git clone https://github.com/Facinorous-420/dick.git`
4. Go into the newly created `dick` folder `cd dick`
5. Go into `/src` and copy `CONSTANTS.ts.example` to `CONSTANTS.ts` and edit it as needed
6. Go back to the root of `dick` and install the dependancies for the frontend, `npm i`

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

@ -0,0 +1,40 @@
import { templatePathBuilder } from "./utils/utils"
/* ------------------- USER CONSTANTS ------------------------ */
// Variable to set DICK to run as a submodule to ASS or separately
// true = submodule | false = separate
export const DICK_SUBMODULE = false
/* ------------------- ASS HOST INFORMATION ---------------------------- */
// Boolean variable if your ASS is secured with HTTPS
// true = https | false = http
export const ASS_SECURE = false
// This is the domain your ASS is hosted at: "127.0.0.1" | "cdn.domain.com"
export const ASS_DOMAIN = "127.0.0.1:40115"
// If running DICK in separate mode, it will need to know where your ASS is installed
// do note that it must be a *relative* location.
// For example "../ass" means ass is installed in the parent directory.
export const ASS_LOCATION = "../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 ------------------------ */
// Port to run the server on, change if you have something else running on that port
export const PORT = "3000"
/* ------------------- 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")
}
}
Loading…
Cancel
Save