forked from ajnart/homarr
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
285 changed files
with
10,886 additions
and
5,197 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 |
---|---|---|
|
@@ -7,3 +7,7 @@ npm-debug.log | |
.github | ||
LICENSE | ||
docs/ | ||
*.sqlite | ||
*.env | ||
.env | ||
.next/standalone/.env |
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,23 @@ | ||
# Since the ".env" file is gitignored, you can use the ".env.example" file to | ||
# build a new ".env" file when you clone the repo. Keep this file up-to-date | ||
# when you add new variables to `.env`. | ||
|
||
# This file will be committed to version control, so make sure not to have any | ||
# secrets in it. If you are cloning this repo, create a copy of this file named | ||
# ".env" and populate it with your secrets. | ||
|
||
# When adding additional environment variables, the schema in "/src/env.js" | ||
# should be updated accordingly. | ||
|
||
# Prisma | ||
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env | ||
DATABASE_URL="file:../database/db.sqlite" | ||
|
||
# Next Auth | ||
# You can generate a new secret on the command line with: | ||
# openssl rand -base64 32 | ||
# https://next-auth.js.org/configuration/options#secret | ||
# NEXTAUTH_SECRET="" | ||
NEXTAUTH_URL="http://localhost:3000" | ||
|
||
NEXTAUTH_SECRET="" |
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
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,2 +1,4 @@ | ||
export const REPO_URL = 'ajnart/homarr'; | ||
export const ICON_PICKER_SLICE_LIMIT = 36; | ||
export const COOKIE_LOCALE_KEY = 'config-locale'; | ||
export const COOKIE_COLOR_SCHEME_KEY = 'color-scheme'; |
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 |
---|---|---|
|
@@ -29,8 +29,8 @@ module.exports = { | |
'no', | ||
'tr', | ||
'lv', | ||
'hu', | ||
'hr' | ||
'hr', | ||
'hu' | ||
], | ||
|
||
localeDetection: true, | ||
|
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,93 @@ | ||
// This is your Prisma schema file, | ||
// learn more about it in the docs: https://pris.ly/d/prisma-schema | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x", "debian-openssl-3.0.x"] | ||
} | ||
|
||
datasource db { | ||
provider = "sqlite" | ||
// NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below | ||
// Further reading: | ||
// https://next-auth.js.org/adapters/prisma#create-the-prisma-schema | ||
// https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
// Necessary for Next auth | ||
model Account { | ||
id String @id @default(cuid()) | ||
userId String | ||
type String | ||
provider String | ||
providerAccountId String | ||
refresh_token String? // @db.Text | ||
access_token String? // @db.Text | ||
expires_at Int? | ||
token_type String? | ||
scope String? | ||
id_token String? // @db.Text | ||
session_state String? | ||
user User @relation(fields: [userId], references: [id], onDelete: Cascade) | ||
@@unique([provider, providerAccountId]) | ||
} | ||
|
||
model Session { | ||
id String @id @default(cuid()) | ||
sessionToken String @unique | ||
userId String | ||
expires DateTime | ||
user User @relation(fields: [userId], references: [id], onDelete: Cascade) | ||
} | ||
|
||
model User { | ||
id String @id @default(cuid()) | ||
name String? | ||
email String? @unique | ||
emailVerified DateTime? | ||
image String? | ||
password String? | ||
salt String? | ||
isAdmin Boolean @default(false) | ||
isOwner Boolean @default(false) | ||
accounts Account[] | ||
sessions Session[] | ||
settings UserSettings? | ||
createdInvites Invite[] | ||
} | ||
|
||
model VerificationToken { | ||
identifier String | ||
token String @unique | ||
expires DateTime | ||
@@unique([identifier, token]) | ||
} | ||
|
||
model Invite { | ||
id String @id @default(cuid()) | ||
token String @unique | ||
expires DateTime | ||
createdById String | ||
createdBy User @relation(fields: [createdById], references: [id], onDelete: Cascade) | ||
} | ||
|
||
model UserSettings { | ||
id String @id @default(cuid()) | ||
userId String | ||
colorScheme String @default("environment") // environment, light, dark | ||
language String @default("en") | ||
defaultBoard String @default("default") | ||
firstDayOfWeek String @default("monday") // monday, saturnday, sunday | ||
searchTemplate String @default("https://google.com/search?q=%s") | ||
openSearchInNewTab Boolean @default(true) | ||
disablePingPulse Boolean @default(false) | ||
replacePingWithIcons Boolean @default(false) | ||
useDebugLanguage Boolean @default(false) | ||
autoFocusSearch Boolean @default(false) | ||
user User @relation(fields: [userId], references: [id], onDelete: Cascade) | ||
@@unique([userId]) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.