Directly Integrated Client for Keisters
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Facinorous 02deef1123
Merge pull request #30 from Facinorous-420/v1.1.1
1 year ago
assets Updates to UI (#27) 1 year ago
src Updates to UI (#27) 1 year ago
views Updates to UI (#27) 1 year ago
.gitignore V1.1.0 (#24) 1 year ago
Dockerfile Add docker compose file. (#29) 1 year ago
LICENSE Initial commit 2 years ago
README.md Add docker set up instructions to README 1 year ago
docker-compose.yml Add docker compose file. (#29) 1 year ago
package.json Update version to v1.1.1 1 year ago
postcss.config.js Initial commit 2 years ago
tailwind.config.js V1.1.0 (#24) 1 year ago
tsconfig.json Initial commit 2 years ago
webpack.mix.js V1.1.0 (#24) 1 year ago

README.md


Login

Profile Preview Profile

DICK (Directly Integrated Client for Keisters)

The main repository for DICK, an ASS front end

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Running The Dashboard
  3. Contributing
  4. Contact
  5. Acknowledgements

About The Project

Dick was created to be an easy to use front end for Ass as there was no public option to allow users to view their saved images on their server. I decided to learn tailwind and also at the same time build this. I did this all in my spare time, and will keep updating as best as I can while I use it. I'm still learning all this so if anyone has suggestions on how to do things better, I am all ears! I love learning! :)

Current Feautres:

  1. General statistics on your file uploads
  2. File browser, allows you to see all your uploads on one webpage
  3. Deletion of items
  4. Copy link of items
  5. Customize DICK (completely white label)
  6. Register new ASS users
  7. hCaptcha on login and register pages You can learn more here.

Planned Feautres:

  1. There are a lot of good ideas out there, to keep track of what is currently planned see the project board

The front end is built using Tailwind CSS, Lucide Icons, as well as hand crafted components all templated using EJS. I plan to eventually rewrite this in React.

The back end is written in Typescript, utilizing expressJS.

Running The Dashboard

Running DICK is very simple, though there is no docker container.
You must have Node >=v16.14.0, which you should if you're running ASS.
NOTE: DICK requires you to use JSON for ASS' data storage method.

Config

Inside of your dick root folder, you will see src/constants.ts.example. Copy this to constants.ts
Inside this file, is some basic configuration you can change for your set up. There are only 5 variables you need to worry about in this file:

Variable Description
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
ASS_LOCATION = "../ass" If running DICK seperately, DICK will use this to find your ASS install folder. Leave this alone if using Docker.
PORT = "3000" Change this number to the port you wish DICK to run on. Leave this alone if using Docker.

Note If you want to set a user as admin, currently you must do it via the database file generated at /src/database/users.json and change the users role from user to admin. By default, the first user to login to your dick instance will be admin.

Running

Development

Open to view the development set up steps
  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
  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
  7. Run npm run build:dev to compile the code base in watch mode
  8. In a new terminal, run npm run serve:dev to run DICK using nodemon

Production

Open to view the docker production set up steps
  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.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 edit the docker-compose.yml to match your specific needs by changing the port, and voluime location where your ass files are on your system.
  7. Run the docker compose file docker-compose up -d this will create a new container named dick.
Open to view the source production set up steps
  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.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
  7. Run npm start to compile the code base and run DICK

When you approach the login screen, the login information is your ASS username, and the secret key generated by ASS is your password. The first user to login will be added to the instance admin list.

Note ASS and the dashboard will be under their own ports.
They will have entirely different routing, and ports. ASS will be running under it's port of 40115 whereas the dashboard will be under the port 3000. This means you can use two different domains for each, such as cdn.yourdomain.com for ASS and dashboard.yourdomain.com for DICK.

Customizing

App settings ware available through the admin page. This is where a user can whitelabel their DICK instance.

Variable Description
App Name This will replace all the DICK occurrences around the app
App Emoji This will allow you to change the emoji you see around the instance, by default its an eggplant. 🍆
Site Title This is the text that shows up in browser tabs, as well as the title for the embed when you link the DICK dashboard NOT to be confused with ASS' picture embeds.
Site Description This text is the description text on the embed when you link the DICK dashboard NOT to be confused with ASS' picture embeds.
Login Text This text is the text on the login screen, above the form.
hCaptcha Enabled If enabled, your instance will use hCaptcha for the login and register pages, if disabled it will only send failed logins to a Rick Roll.
hCaptcha Site ID This is the hcaptcha site id if you plan to use hCaptcha as captcha to protect your DICK instance.
hCaptcha Secret Key This is the hcaptcha secret key found in your hcaptcha account if you plan to use hCaptcha as captcha to protect your DICK instance.
Private Mode If set, this will hide the global instance stats shown on the login page.
Registrations Enabled If set, this will allow people to use the register page to create new accounts.
App Logo This is the app image shown various places in DICK.
Default Profile Picture This is the default image set as users profile pictures.

Contributing

If using VSCode, I'd recommend using this extension: https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request