├── .dockerignore ├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── .styleci.yml ├── Caddyfile ├── Dockerfile ├── LICENSE ├── README.md ├── app ├── Actions │ ├── Fortify │ │ ├── CreateNewUser.php │ │ ├── PasswordValidationRules.php │ │ ├── ResetUserPassword.php │ │ ├── UpdateUserPassword.php │ │ └── UpdateUserProfileInformation.php │ └── Jetstream │ │ └── DeleteUser.php ├── Console │ ├── Commands │ │ ├── CreateUserCommand.php │ │ ├── DeleteDuplicateLinksCommand.php │ │ ├── DeleteUserCommand.php │ │ ├── ListUsersCommand.php │ │ ├── ShowStatsCommand.php │ │ └── UpdateGroupsLinkCount.php │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Helpers │ ├── DateHelper.php │ ├── PermissionHelper.php │ └── WebpageData.php ├── Http │ ├── Controllers │ │ ├── ApiControllers │ │ │ ├── GroupController.php │ │ │ ├── LinkController.php │ │ │ └── TagController.php │ │ ├── BulkEditingController.php │ │ ├── Controller.php │ │ ├── CsrfController.php │ │ ├── DeleteUserDataController.php │ │ ├── ExportController.php │ │ ├── GroupController.php │ │ ├── ImportController.php │ │ ├── InboxController.php │ │ ├── LinkController.php │ │ ├── PublicLinkController.php │ │ ├── SearchController.php │ │ └── TagController.php │ ├── Kernel.php │ ├── Middleware │ │ ├── AccessOnlyLocal.php │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── HandleInertiaRequests.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php │ └── Requests │ │ ├── DeleteUserDataRequest.php │ │ ├── ExportRequest.php │ │ ├── ImportRequest.php │ │ ├── StoreGroupRequest.php │ │ ├── StoreLinkApiRequest.php │ │ ├── StoreLinkRequest.php │ │ ├── StorePublicLinkRequest.php │ │ ├── UpdateGroupRequest.php │ │ ├── UpdateLinkRequest.php │ │ └── UpdatePublicLinkRequest.php ├── Models │ ├── Group.php │ ├── Link.php │ ├── PublicLink.php │ ├── Tag.php │ └── User.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ ├── FortifyServiceProvider.php │ ├── JetstreamServiceProvider.php │ └── RouteServiceProvider.php └── Services │ ├── BulkEditingService.php │ ├── DeleteUserDataService.php │ ├── ExportService.php │ ├── HtmlBookmarkExportService.php │ ├── HtmlBookmarkImportService.php │ ├── ImportService.php │ ├── LinkService.php │ └── Models │ ├── GroupService.php │ └── LinkService.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filesystems.php ├── fortify.php ├── hashing.php ├── jetstream.php ├── logging.php ├── mail.php ├── queue.php ├── sanctum.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ ├── GroupFactory.php │ ├── LinkFactory.php │ └── UserFactory.php ├── migrations │ ├── 2022_08_11_143315_add_two_factor_confirmed_column_to_users_table.php │ ├── 2022_11_26_194415_remove_media_type_column_from_links_table.php │ ├── 2023_03_19_203332_add_expires_at_column_to_personal_access_tokens_table.php │ ├── 2023_04_30_173655_drop_later_table.php │ ├── 2024_02_19_210136_increase_link_column_size.php │ ├── 2024_03_02_180621_create_public_links_tables.php │ └── 2024_04_05_185606_add_query_options_columns_to_groups_table.php ├── schema │ ├── mysql-schema.dump │ └── sqlite-schema.dump └── seeders │ └── DatabaseSeeder.php ├── docker-entrypoint.sh ├── docker ├── .env.prod.example ├── compose.prod.yaml ├── config │ ├── custom-php-fpm.conf │ └── custom-php.ini └── mariadb-example │ ├── .env.prod.example │ └── compose.prod.yaml ├── docs └── images │ ├── command-palette.png │ ├── groups.png │ ├── home.png │ ├── links.png │ └── new-link.png ├── jsconfig.json ├── lang ├── en.json └── en │ ├── auth.php │ ├── pagination.php │ ├── passwords.php │ └── validation.php ├── package-lock.json ├── package.json ├── phpunit.xml ├── postcss.config.cjs ├── public ├── .htaccess ├── assets │ └── favicons │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ ├── apple-touch-icon.png │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ └── favicon.ico ├── favicon.ico ├── index.php ├── manifest.json └── robots.txt ├── ray.php ├── resources ├── css │ ├── app.css │ ├── colors.css │ └── fonts │ │ ├── inter-ui.css │ │ └── jetbrains-mono.css ├── fonts │ ├── inter-ui │ │ ├── Inter-Black.woff │ │ ├── Inter-Black.woff2 │ │ ├── Inter-BlackItalic.woff │ │ ├── Inter-BlackItalic.woff2 │ │ ├── Inter-Bold.woff │ │ ├── Inter-Bold.woff2 │ │ ├── Inter-BoldItalic.woff │ │ ├── Inter-BoldItalic.woff2 │ │ ├── Inter-ExtraBold.woff │ │ ├── Inter-ExtraBold.woff2 │ │ ├── Inter-ExtraBoldItalic.woff │ │ ├── Inter-ExtraBoldItalic.woff2 │ │ ├── Inter-ExtraLight.woff │ │ ├── Inter-ExtraLight.woff2 │ │ ├── Inter-ExtraLightItalic.woff │ │ ├── Inter-ExtraLightItalic.woff2 │ │ ├── Inter-Italic.woff │ │ ├── Inter-Italic.woff2 │ │ ├── Inter-Light.woff │ │ ├── Inter-Light.woff2 │ │ ├── Inter-LightItalic.woff │ │ ├── Inter-LightItalic.woff2 │ │ ├── Inter-Medium.woff │ │ ├── Inter-Medium.woff2 │ │ ├── Inter-MediumItalic.woff │ │ ├── Inter-MediumItalic.woff2 │ │ ├── Inter-Regular.woff │ │ ├── Inter-Regular.woff2 │ │ ├── Inter-SemiBold.woff │ │ ├── Inter-SemiBold.woff2 │ │ ├── Inter-SemiBoldItalic.woff │ │ ├── Inter-SemiBoldItalic.woff2 │ │ ├── Inter-Thin.woff │ │ ├── Inter-Thin.woff2 │ │ ├── Inter-ThinItalic.woff │ │ ├── Inter-ThinItalic.woff2 │ │ ├── Inter-italic.var.woff2 │ │ ├── Inter-roman.var.woff2 │ │ └── Inter.var.woff2 │ └── jetbrains-mono │ │ ├── JetBrainsMono-Bold.woff2 │ │ ├── JetBrainsMono-BoldItalic.woff2 │ │ ├── JetBrainsMono-ExtraBold.woff2 │ │ ├── JetBrainsMono-ExtraBoldItalic.woff2 │ │ ├── JetBrainsMono-ExtraLight.woff2 │ │ ├── JetBrainsMono-ExtraLightItalic.woff2 │ │ ├── JetBrainsMono-Italic.woff2 │ │ ├── JetBrainsMono-Light.woff2 │ │ ├── JetBrainsMono-LightItalic.woff2 │ │ ├── JetBrainsMono-Medium.woff2 │ │ ├── JetBrainsMono-MediumItalic.woff2 │ │ ├── JetBrainsMono-Regular.woff2 │ │ ├── JetBrainsMono-Thin.woff2 │ │ └── JetBrainsMono-ThinItalic.woff2 ├── js │ ├── Components │ │ ├── Auth │ │ │ ├── AuthenticationCard.svelte │ │ │ ├── AuthenticationCardLogo.svelte │ │ │ └── SubmitButton.svelte │ │ ├── Badge.svelte │ │ ├── BreadcrumbNavigation │ │ │ ├── BreadcrumbNavContainer.svelte │ │ │ └── BreadcrumbNavItem.svelte │ │ ├── Buttons │ │ │ └── Button.svelte │ │ ├── Container.svelte │ │ ├── Dropdowns │ │ │ ├── Dropdown.svelte │ │ │ ├── DropdownItem.svelte │ │ │ └── InnerDropdownSection.svelte │ │ ├── EmptyStates │ │ │ ├── EmptyState.svelte │ │ │ └── EmptyStateWithAction.svelte │ │ ├── FormLayouts │ │ │ ├── Inputs │ │ │ │ ├── Checkbox.svelte │ │ │ │ ├── FileUpload.svelte │ │ │ │ ├── Radio.svelte │ │ │ │ ├── RadioGroup.svelte │ │ │ │ └── Text.svelte │ │ │ └── Modals │ │ │ │ ├── Container.svelte │ │ │ │ └── Input.svelte │ │ ├── Icons │ │ │ └── Logo.svelte │ │ ├── Inputs │ │ │ └── Input.svelte │ │ ├── LinkList │ │ │ ├── LinkList.svelte │ │ │ └── LinkListWithTagFilter.svelte │ │ ├── Modals │ │ │ └── Modal.svelte │ │ ├── Navigation │ │ │ ├── MenuButton.svelte │ │ │ └── MenuItem.svelte │ │ ├── Pagination.svelte │ │ ├── QueryOptions │ │ │ └── QueryOption.svelte │ │ ├── Toggles │ │ │ └── Toggle.svelte │ │ └── Widgets │ │ │ ├── Widget.svelte │ │ │ └── WidgetContainer.svelte │ ├── Heroicons │ │ ├── Micro │ │ │ ├── Plus.svelte │ │ │ └── XMark.svelte │ │ ├── Mini │ │ │ ├── ComputerDesktop.svelte │ │ │ ├── Home.svelte │ │ │ ├── Inbox.svelte │ │ │ ├── Link.svelte │ │ │ ├── Minus.svelte │ │ │ ├── Moon.svelte │ │ │ ├── Plus.svelte │ │ │ ├── PlusCircle.svelte │ │ │ ├── Sun.svelte │ │ │ └── Tag.svelte │ │ └── Outline │ │ │ ├── Link.svelte │ │ │ └── Tag.svelte │ ├── Jetstream │ │ ├── ActionMessage.vue │ │ ├── ActionSection.svelte │ │ ├── ApplicationMark.svelte │ │ ├── AuthenticationCard.svelte │ │ ├── AuthenticationCardLogo.svelte │ │ ├── Button.svelte │ │ ├── Checkbox.svelte │ │ ├── ConfirmationModal.svelte │ │ ├── ConfirmsPassword.svelte │ │ ├── DangerButton.svelte │ │ ├── DialogModal.svelte │ │ ├── Dropdown.svelte │ │ ├── DropdownLink.svelte │ │ ├── FormSection.svelte │ │ ├── Input.svelte │ │ ├── InputError.svelte │ │ ├── Label.svelte │ │ ├── Modal.svelte │ │ ├── NavLink.svelte │ │ ├── SecondaryButton.svelte │ │ ├── SectionBorder.svelte │ │ ├── SectionTitle.svelte │ │ ├── SuccessMessage.svelte │ │ └── ValidationErrors.svelte │ ├── Layouts │ │ ├── AppLayout │ │ │ ├── AppLayout.svelte │ │ │ └── Partials │ │ │ │ ├── GroupNavigationLink.svelte │ │ │ │ └── Main.svelte │ │ └── GuestLayout.svelte │ ├── Pages │ │ ├── API │ │ │ ├── Index.svelte │ │ │ └── Partials │ │ │ │ └── ApiTokenManager.svelte │ │ ├── Auth │ │ │ ├── ConfirmPassword.svelte │ │ │ ├── ForgotPassword.svelte │ │ │ ├── Login.svelte │ │ │ ├── Register.svelte │ │ │ ├── ResetPassword.svelte │ │ │ ├── TwoFactorChallenge.svelte │ │ │ └── VerifyEmail.svelte │ │ ├── Inbox │ │ │ └── Index.svelte │ │ ├── Links │ │ │ └── Index.svelte │ │ ├── Profile │ │ │ ├── Partials │ │ │ │ ├── DeleteUserDataForm.svelte │ │ │ │ ├── DeleteUserForm.svelte │ │ │ │ ├── ExportUserDataForm.svelte │ │ │ │ ├── ImportUserDataForm.svelte │ │ │ │ ├── LogoutOtherBrowserSessionsForm.svelte │ │ │ │ ├── TwoFactorAuthenticationForm.svelte │ │ │ │ ├── UpdatePasswordForm.svelte │ │ │ │ └── UpdateProfileInformationForm.svelte │ │ │ └── Show.svelte │ │ ├── PublicLink │ │ │ ├── Index.svelte │ │ │ └── Show.svelte │ │ ├── SingleGroup │ │ │ └── Index.svelte │ │ ├── SingleLink │ │ │ └── Index.svelte │ │ └── Tags │ │ │ ├── Index.svelte │ │ │ └── Partials │ │ │ └── NewTag.svelte │ ├── Partials │ │ ├── CommandPalette.svelte │ │ ├── DeleteGroupModal.svelte │ │ ├── DeleteLinkModal.svelte │ │ ├── DeletePublicLinkModal.svelte │ │ ├── DeleteTagModel.svelte │ │ ├── GroupModal.svelte │ │ ├── GroupSelectMenu.svelte │ │ ├── LinkModal.svelte │ │ └── TagSelectMenu.svelte │ ├── app.js │ ├── bootstrap.js │ ├── stores.js │ └── utils │ │ ├── index.js │ │ ├── local-settings.js │ │ ├── sidebar.js │ │ ├── tag.js │ │ └── theme.js ├── markdown │ ├── policy.md │ └── terms.md └── views │ ├── app.blade.php │ └── errors │ ├── 401.blade.php │ ├── 403.blade.php │ ├── 404.blade.php │ ├── 419.blade.php │ ├── 429.blade.php │ ├── 500.blade.php │ ├── 503.blade.php │ ├── layout.blade.php │ └── minimal.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tailwind.config.cjs ├── tests ├── CreatesApplication.php ├── Feature │ ├── ApiTokenPermissionsTest.php │ ├── AuthenticationTest.php │ ├── BrowserSessionsTest.php │ ├── CreateApiTokenTest.php │ ├── DeleteAccountTest.php │ ├── DeleteApiTokenTest.php │ ├── EmailVerificationTest.php │ ├── ExampleTest.php │ ├── PasswordConfirmationTest.php │ ├── PasswordResetTest.php │ ├── ProfileInformationTest.php │ ├── RegistrationTest.php │ ├── TwoFactorAuthenticationSettingsTest.php │ └── UpdatePasswordTest.php ├── Pest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── vite.config.js /.dockerignore: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | .editorconfig 3 | .env 4 | .env.example 5 | .gitattributes 6 | .gitignore 7 | .styleci.yml 8 | phpunit.xml 9 | README.md 10 | ray.php 11 | LICENSE 12 | Dockerfile 13 | 14 | /.git 15 | /.idea 16 | /node_modules 17 | /vendor 18 | /docker 19 | !/docker/config/* 20 | /docs 21 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Servas 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | SERVAS_ENABLE_REGISTRATION=true 8 | SERVAS_SHOW_APP_VERSION=true 9 | 10 | LOG_CHANNEL=stack 11 | LOG_DEPRECATIONS_CHANNEL=null 12 | LOG_LEVEL=debug 13 | 14 | # MySQL 15 | DB_CONNECTION=mysql 16 | DB_HOST=127.0.0.1 17 | DB_PORT=3306 18 | DB_DATABASE=laravel 19 | DB_USERNAME=root 20 | DB_PASSWORD= 21 | 22 | # SQLite 23 | #DB_CONNECTION=sqlite 24 | #DB_DATABASE=/app/database/database.sqlite 25 | #DB_FOREIGN_KEYS=true 26 | 27 | BROADCAST_DRIVER=log 28 | CACHE_DRIVER=file 29 | FILESYSTEM_DISK=local 30 | QUEUE_CONNECTION=sync 31 | SESSION_DRIVER=database 32 | SESSION_LIFETIME=120 33 | 34 | MEMCACHED_HOST=127.0.0.1 35 | 36 | REDIS_HOST=127.0.0.1 37 | REDIS_PASSWORD=null 38 | REDIS_PORT=6379 39 | 40 | MAIL_MAILER=smtp 41 | MAIL_HOST=mailhog 42 | MAIL_PORT=1025 43 | MAIL_USERNAME=null 44 | MAIL_PASSWORD=null 45 | MAIL_ENCRYPTION=null 46 | MAIL_FROM_ADDRESS=null 47 | MAIL_FROM_NAME="${APP_NAME}" 48 | 49 | AWS_ACCESS_KEY_ID= 50 | AWS_SECRET_ACCESS_KEY= 51 | AWS_DEFAULT_REGION=us-east-1 52 | AWS_BUCKET= 53 | AWS_USE_PATH_STYLE_ENDPOINT=false 54 | 55 | PUSHER_APP_ID= 56 | PUSHER_APP_KEY= 57 | PUSHER_APP_SECRET= 58 | PUSHER_APP_CLUSTER=mt1 59 | 60 | VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 61 | VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 62 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | *.blade.php diff=html 4 | *.css diff=css 5 | *.html diff=html 6 | *.md diff=markdown 7 | *.php diff=php 8 | 9 | /.github export-ignore 10 | CHANGELOG.md export-ignore 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /public/css 5 | /public/js 6 | /public/build 7 | /storage/*.key 8 | /vendor 9 | .env 10 | .env.backup 11 | .phpunit.result.cache 12 | docker-compose.override.yml 13 | Homestead.json 14 | Homestead.yaml 15 | npm-debug.log 16 | yarn-error.log 17 | /.idea 18 | /.vscode 19 | -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | php: 2 | preset: laravel 3 | version: 8 4 | disabled: 5 | - no_unused_imports 6 | finder: 7 | not-name: 8 | - index.php 9 | js: 10 | finder: 11 | not-name: 12 | - webpack.mix.js 13 | css: true 14 | -------------------------------------------------------------------------------- /Caddyfile: -------------------------------------------------------------------------------- 1 | { 2 | frankenphp 3 | 4 | auto_https off 5 | } 6 | 7 | :80 { 8 | root /app/public 9 | 10 | encode zstd br gzip 11 | 12 | php_server { 13 | try_files {path} index.php 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM dunglas/frankenphp:php8.3-alpine AS application_builder 2 | WORKDIR /app 3 | 4 | COPY . ./ 5 | 6 | RUN install-php-extensions \ 7 | @composer 8 | 9 | RUN composer install --optimize-autoloader --no-dev && \ 10 | composer dump-autoload --no-dev --classmap-authoritative 11 | 12 | 13 | FROM node:20.11-alpine AS asset_builder 14 | WORKDIR /app 15 | 16 | COPY ./package.json ./ 17 | COPY ./package-lock.json ./ 18 | COPY ./vite.config.js ./ 19 | COPY ./postcss.config.cjs ./ 20 | COPY ./tailwind.config.cjs ./ 21 | COPY ./resources ./resources 22 | 23 | RUN npm install && \ 24 | npm run build 25 | 26 | 27 | FROM dunglas/frankenphp:php8.3-alpine 28 | WORKDIR /app 29 | 30 | ENV SERVER_NAME=:80 31 | 32 | RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" 33 | 34 | RUN install-php-extensions \ 35 | pdo_mysql \ 36 | mysqli \ 37 | opcache \ 38 | bcmath \ 39 | && apk add --no-cache \ 40 | mariadb-client \ 41 | sqlite 42 | 43 | COPY . ./ 44 | 45 | COPY --from=application_builder /app/vendor ./vendor 46 | COPY --from=application_builder /app/bootstrap/cache ./bootstrap/cache 47 | 48 | COPY --from=asset_builder /app/public/build ./public/build 49 | 50 | RUN rm -rf ./docker 51 | 52 | COPY ./Caddyfile /etc/caddy/Caddyfile 53 | COPY docker/config/custom-php.ini /usr/local/etc/php/conf.d/zzz-custom-php.ini 54 | COPY docker/config/custom-php-fpm.conf /usr/local/etc/php-fpm.d/zzz-custom-php-fpm.conf 55 | 56 | RUN mkdir -p /var/cache/php/opcache && \ 57 | chmod 700 /var/cache/php/opcache 58 | 59 | COPY ./docker-entrypoint.sh / 60 | 61 | ENTRYPOINT ["/docker-entrypoint.sh"] 62 | -------------------------------------------------------------------------------- /app/Actions/Fortify/CreateNewUser.php: -------------------------------------------------------------------------------- 1 | ['required', 'string', 'max:255'], 25 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 26 | 'password' => $this->passwordRules(), 27 | 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['required', 'accepted'] : '', 28 | ])->validate(); 29 | 30 | return User::create([ 31 | 'name' => $input['name'], 32 | 'email' => $input['email'], 33 | 'password' => Hash::make($input['password']), 34 | ]); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Actions/Fortify/PasswordValidationRules.php: -------------------------------------------------------------------------------- 1 | $this->passwordRules(), 24 | ])->validate(); 25 | 26 | $user->forceFill([ 27 | 'password' => Hash::make($input['password']), 28 | ])->save(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Actions/Fortify/UpdateUserPassword.php: -------------------------------------------------------------------------------- 1 | ['required', 'string'], 24 | 'password' => $this->passwordRules(), 25 | ])->after(function ($validator) use ($user, $input) { 26 | if (! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) { 27 | $validator->errors()->add('current_password', __('The provided password does not match your current password.')); 28 | } 29 | })->validateWithBag('updatePassword'); 30 | 31 | $user->forceFill([ 32 | 'password' => Hash::make($input['password']), 33 | ])->save(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Actions/Jetstream/DeleteUser.php: -------------------------------------------------------------------------------- 1 | deleteProfilePhoto(); 18 | $user->tokens->each->delete(); 19 | $user->delete(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Console/Commands/CreateUserCommand.php: -------------------------------------------------------------------------------- 1 | ask('What is your name?'); 34 | $email = $this->ask('What is your email?'); 35 | $password = $this->secret('What is the password?'); 36 | $confirmPassword = $this->secret('Confirm the password?'); 37 | 38 | try { 39 | $createNewUser->create([ 40 | 'name' => $name, 41 | 'email' => $email, 42 | 'password' => $password, 43 | 'password_confirmation' => $confirmPassword 44 | ]); 45 | } catch (ValidationException $exception) { 46 | $this->error($exception->getMessage()); 47 | return Command::FAILURE; 48 | } 49 | 50 | $this->info('The user was created!'); 51 | 52 | return Command::SUCCESS; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /app/Console/Commands/DeleteUserCommand.php: -------------------------------------------------------------------------------- 1 | ask('User ID'); 34 | 35 | try { 36 | Validator::make(['id' => $userId], [ 37 | 'id' => ['required', 'numeric'], 38 | ])->validate(); 39 | } catch (ValidationException $exception) { 40 | $this->error($exception->getMessage()); 41 | return Command::FAILURE; 42 | } 43 | 44 | $user = User::find($userId); 45 | 46 | if (empty($user)) { 47 | $this->error('The user does not exist.'); 48 | 49 | return Command::FAILURE; 50 | } 51 | 52 | if ($this->confirm("Are you sure you want to delete the user with the email: $user->email?")) { 53 | $user->delete(); 54 | 55 | $this->info('The user was deleted!'); 56 | 57 | return Command::SUCCESS; 58 | } 59 | 60 | $this->error('Please confirm the deletion.'); 61 | 62 | return Command::FAILURE; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /app/Console/Commands/ListUsersCommand.php: -------------------------------------------------------------------------------- 1 | id, 37 | $user->name, 38 | $user->email, 39 | $user->created_at, 40 | ]; 41 | } 42 | 43 | $this->table(['ID', 'Name', 'Email', 'Created at'], $userInfo); 44 | 45 | return Command::SUCCESS; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /app/Console/Commands/ShowStatsCommand.php: -------------------------------------------------------------------------------- 1 | table(['Model', 'Count'], [ 34 | ['Links', Link::all()->count()], 35 | ['Groups', Group::all()->count()], 36 | ['Tags', Tag::all()->count()], 37 | ]); 38 | 39 | return Command::SUCCESS; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Console/Commands/UpdateGroupsLinkCount.php: -------------------------------------------------------------------------------- 1 | updateLinksCount(); 31 | 32 | $group->save(); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 19 | } 20 | 21 | /** 22 | * Register the commands for the application. 23 | * 24 | * @return void 25 | */ 26 | protected function commands() 27 | { 28 | $this->load(__DIR__.'/Commands'); 29 | 30 | require base_path('routes/console.php'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | > 14 | */ 15 | protected $dontReport = [ 16 | // 17 | ]; 18 | 19 | /** 20 | * A list of the inputs that are never flashed for validation exceptions. 21 | * 22 | * @var array 23 | */ 24 | protected $dontFlash = [ 25 | 'current_password', 26 | 'password', 27 | 'password_confirmation', 28 | ]; 29 | 30 | /** 31 | * Register the exception handling callbacks for the application. 32 | * 33 | * @return void 34 | */ 35 | public function register() 36 | { 37 | $this->reportable(function (Throwable $e) { 38 | // 39 | }); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Helpers/DateHelper.php: -------------------------------------------------------------------------------- 1 | format('d.m.Y'); 17 | } 18 | 19 | public static function convertToDateTimeString(string $timestamp): string 20 | { 21 | return self::makeCarbonInstance($timestamp)->format('d.m.Y H:i:s'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/Helpers/PermissionHelper.php: -------------------------------------------------------------------------------- 1 | $userTable === $userId; 19 | } 20 | 21 | /** 22 | * Check if the user is the owner of the modal instance with the ID specified in the array. 23 | * Return an array with the IDs that passed the check. 24 | */ 25 | public static function filterArrayOfModalIds(array $modalIds, string $modal): array 26 | { 27 | if (empty($modalIds)) { 28 | return []; 29 | } 30 | 31 | $filteredModalIds = []; 32 | $modalInstance = app($modal); 33 | 34 | foreach ($modalIds as $modalId) { 35 | $modal = $modalInstance->find($modalId); 36 | 37 | if (self::userIsOwnerOfModal($modal)) { 38 | $filteredModalIds[] = $modalId; 39 | } 40 | } 41 | 42 | return $filteredModalIds; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/Helpers/WebpageData.php: -------------------------------------------------------------------------------- 1 | get($filteredUrl)->body(); 18 | 19 | preg_match_all('@.*(.*).*@sU', $html, $matches); 20 | 21 | if (empty($matches[1])) return ''; 22 | 23 | $title = trim(html_entity_decode($matches[1][0])); 24 | $title = strip_tags($title); 25 | 26 | return mb_substr($title, 0, 255); 27 | } catch (RequestException) { 28 | 29 | return ''; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Controllers/ApiControllers/GroupController.php: -------------------------------------------------------------------------------- 1 | filterByCurrentUser() 17 | ->get() 18 | ->transform(fn(Group $group) => [ 19 | 'id' => $group->id, 20 | 'title' => $group->title, 21 | ]) 22 | ->toArray(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/Http/Controllers/ApiControllers/LinkController.php: -------------------------------------------------------------------------------- 1 | validated(); 29 | 30 | $link = Link::make(); 31 | 32 | $link->link = $validated['link']; 33 | $link->title = $validated['title']; 34 | $link->user_id = Auth::id(); 35 | 36 | if (empty($link->title)) { 37 | $link->title = WebpageData::getWebPageTitle($link->link); 38 | } 39 | 40 | $link->save(); 41 | 42 | if (key_exists('groups', $validated)) { 43 | $groupIds = $validated['groups']; 44 | 45 | $link->groups()->sync($groupIds); 46 | 47 | $this->groupService->updateUserGroupsLinkCount(Auth::user()); 48 | } 49 | 50 | if (key_exists('tags', $validated)) { 51 | $tags = []; 52 | 53 | foreach ($validated['tags'] as $tag) { 54 | $tags[] = Tag::filterByCurrentUser()->find($tag); 55 | } 56 | 57 | $link->syncTags($tags); 58 | } 59 | 60 | return response('The link was added.', headers: ['Content-Type' => 'text/plain']); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /app/Http/Controllers/ApiControllers/TagController.php: -------------------------------------------------------------------------------- 1 | filterByCurrentUser() 17 | ->get() 18 | ->transform(fn(Tag $tag) => [ 19 | 'id' => $tag->id, 20 | 'name' => $tag->name, 21 | ]) 22 | ->toArray(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/Http/Controllers/BulkEditingController.php: -------------------------------------------------------------------------------- 1 | handleLinkEditingAction($action, $links, $groups, $tags); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | validated('deleteOptions'); 14 | 15 | $deleteUserDataService->deleteUserData($deleteOptions, Auth::user()); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Controllers/ExportController.php: -------------------------------------------------------------------------------- 1 | validated(); 15 | 16 | $exportFormat = $validated['exportFormat']; 17 | 18 | $export = $exportService->exportUserData(Auth::user()); 19 | 20 | if ($exportFormat === 'json') { 21 | 22 | return response()->streamDownload(function () use ($export) { 23 | echo json_encode($export, JSON_PRETTY_PRINT); 24 | }, 'export.json', [ 25 | 'Content-Type' => 'application/json', 26 | ]); 27 | } elseif ($exportFormat === 'html' && array_key_exists('links', $export)) { 28 | 29 | return response()->streamDownload(function () use ($htmlBookmarkExportService, $export) { 30 | echo $htmlBookmarkExportService->createHtmlExport($export); 31 | }, 'export.html', [ 32 | 'Content-Type' => 'text/html', 33 | ]); 34 | } 35 | 36 | return back(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Controllers/ImportController.php: -------------------------------------------------------------------------------- 1 | validated(); 17 | 18 | $importSource = $validated['importSource']; 19 | $importOptions = $validated['importOptions']; 20 | 21 | /** @var UploadedFile $importFile */ 22 | $importFile = $validated['importFile']; 23 | 24 | if ($importSource === 'json' && Str::isJson($importFile->getContent())) { 25 | $data = json_decode($importFile->getContent(), true); 26 | } elseif ($importSource === 'html') { 27 | $data = $htmlBookmarkImportService->extractData($importFile->getContent()); 28 | } else { 29 | 30 | return back(); 31 | } 32 | 33 | $importService->importUserData($data, $importOptions, Auth::user()); 34 | 35 | return back(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Http/Controllers/InboxController.php: -------------------------------------------------------------------------------- 1 | Link::orderBy('created_at', 'desc') 23 | ->filterByCurrentUser() 24 | ->when($showUntagged, fn($query) => $query->whereDoesntHave('tags')) 25 | ->when($showUngrouped, fn($query) => $query->whereDoesntHave('groups')) 26 | ->filterLinks($searchString) 27 | ->through(fn(Link $link) => [ 28 | 'title' => $link->title, 29 | 'link' => $link->link, 30 | 'id' => $link->id, 31 | ]), 32 | 'searchString' => $searchString, 33 | 'untagged' => $showUntagged, 34 | 'ungrouped' => $showUngrouped, 35 | ]); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Http/Controllers/SearchController.php: -------------------------------------------------------------------------------- 1 | input('searchString') ?? ''; 18 | 19 | return (new Search()) 20 | ->registerModel(Link::class, 'title', 'link') 21 | ->registerModel(Group::class, 'title') 22 | ->registerModel(Tag::class, 'name') 23 | ->search($searchString, Auth::user()) 24 | ->transform(fn(SearchResult $searchResult) => (object)[ 25 | 'title' => $searchResult->title, 26 | 'url' => $searchResult->url, 27 | 'link' => $searchResult->searchable->link, 28 | 'type' => $searchResult->type, 29 | 'hash' => md5($searchResult->url), 30 | ]) 31 | ->toArray(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Middleware/AccessOnlyLocal.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/HandleInertiaRequests.php: -------------------------------------------------------------------------------- 1 | config('app.name'), 41 | 'appVersion' => config('app.version'), 42 | 'showAppVersion' => config('app.show_app_version'), 43 | ]); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 26 | return redirect(RouteServiceProvider::HOME); 27 | } 28 | } 29 | 30 | return $next($request); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts() 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | |string|null 14 | */ 15 | protected $proxies = '*'; 16 | 17 | /** 18 | * The headers that should be used to detect proxies. 19 | * 20 | * @var int 21 | */ 22 | protected $headers = 23 | Request::HEADER_X_FORWARDED_FOR | 24 | Request::HEADER_X_FORWARDED_HOST | 25 | Request::HEADER_X_FORWARDED_PORT | 26 | Request::HEADER_X_FORWARDED_PROTO | 27 | Request::HEADER_X_FORWARDED_AWS_ELB; 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Requests/DeleteUserDataRequest.php: -------------------------------------------------------------------------------- 1 | 21 | */ 22 | public function rules(): array 23 | { 24 | return [ 25 | 'deleteOptions' => 'required|array', 26 | 'deleteOptions.*' => 'string', 27 | ]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/Http/Requests/ExportRequest.php: -------------------------------------------------------------------------------- 1 | 21 | */ 22 | public function rules(): array 23 | { 24 | return [ 25 | 'exportFormat' => 'required|in:json,html', 26 | ]; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Requests/ImportRequest.php: -------------------------------------------------------------------------------- 1 | 22 | */ 23 | public function rules(): array 24 | { 25 | $rules = [ 26 | 'importSource' => 'required|in:json,html', 27 | 'importOptions' => 'required|array', 28 | 'importOptions.*' => 'string', 29 | 'importFile' => [ 30 | 'required', 31 | ], 32 | ]; 33 | 34 | switch ($this->importSource) { 35 | case 'json': 36 | $rules['importFile'][] = File::types('json'); 37 | break; 38 | case 'html': 39 | $rules['importFile'][] = File::types('html'); 40 | break; 41 | } 42 | 43 | return $rules; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/Http/Requests/StoreGroupRequest.php: -------------------------------------------------------------------------------- 1 | |string> 22 | */ 23 | public function rules(): array 24 | { 25 | return Group::rules(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Http/Requests/StoreLinkRequest.php: -------------------------------------------------------------------------------- 1 | merge([ 24 | 'link' => filter_var($this->link, FILTER_VALIDATE_URL) ? $this->link : "https://$this->link", 25 | ]); 26 | } 27 | 28 | /** 29 | * Get the validation rules that apply to the request. 30 | * 31 | * @return array 32 | */ 33 | public function rules(): array 34 | { 35 | return array_merge( 36 | [ 37 | 'groups' => 'array', 38 | 'tags' => 'array' 39 | ], 40 | Link::rules($this->request->get('link')), 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/Http/Requests/StorePublicLinkRequest.php: -------------------------------------------------------------------------------- 1 | |string> 21 | */ 22 | public function rules(): array 23 | { 24 | return [ 25 | 'groupId' => 'required|integer|exists:App\Models\Group,id', 26 | ]; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Requests/UpdateGroupRequest.php: -------------------------------------------------------------------------------- 1 | route('group'), $this->user()->id); 17 | } 18 | 19 | /** 20 | * Get the validation rules that apply to the request. 21 | * 22 | * @return array|string> 23 | */ 24 | public function rules(): array 25 | { 26 | return Group::rules(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Requests/UpdateLinkRequest.php: -------------------------------------------------------------------------------- 1 | route('link'), $this->user()->id); 17 | } 18 | 19 | /** 20 | * Prepare the data for validation. 21 | */ 22 | protected function prepareForValidation(): void 23 | { 24 | $this->merge([ 25 | 'link' => filter_var($this->link, FILTER_VALIDATE_URL) ? $this->link : "https://$this->link", 26 | ]); 27 | } 28 | 29 | /** 30 | * Get the validation rules that apply to the request. 31 | * 32 | * @return array 33 | */ 34 | public function rules(): array 35 | { 36 | return array_merge( 37 | [ 38 | 'groups' => 'array', 39 | 'tags' => 'array' 40 | ], 41 | Link::rules($this->request->get('link'), $this->route('link')->link), 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/Http/Requests/UpdatePublicLinkRequest.php: -------------------------------------------------------------------------------- 1 | |string> 21 | */ 22 | public function rules(): array 23 | { 24 | return [ 25 | // 26 | ]; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Models/PublicLink.php: -------------------------------------------------------------------------------- 1 | morphTo(); 16 | } 17 | 18 | public function getLink(): string 19 | { 20 | return url("share/$this->share_id"); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Models/Tag.php: -------------------------------------------------------------------------------- 1 | $this->name]); 15 | 16 | return new SearchResult( 17 | $this, 18 | $this->name, 19 | $url 20 | ); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 51 | ]; 52 | 53 | /** 54 | * The accessors to append to the model's array form. 55 | * 56 | * @var array 57 | */ 58 | protected $appends = [ 59 | 'profile_photo_url', 60 | ]; 61 | } 62 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | protected $policies = [ 16 | // 'App\Models\Model' => 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/FortifyServiceProvider.php: -------------------------------------------------------------------------------- 1 | email; 41 | 42 | return Limit::perMinute(5)->by($email.$request->ip()); 43 | }); 44 | 45 | RateLimiter::for('two-factor', function (Request $request) { 46 | return Limit::perMinute(5)->by($request->session()->get('login.id')); 47 | }); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /app/Providers/JetstreamServiceProvider.php: -------------------------------------------------------------------------------- 1 | configurePermissions(); 29 | 30 | Jetstream::deleteUsersUsing(DeleteUser::class); 31 | } 32 | 33 | /** 34 | * Configure the permissions that are available within the application. 35 | * 36 | * @return void 37 | */ 38 | protected function configurePermissions() 39 | { 40 | Jetstream::defaultApiTokenPermissions(['create']); 41 | 42 | Jetstream::permissions([ 43 | 'create', 44 | // 'read', 45 | // 'update', 46 | // 'delete', 47 | ]); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 39 | 40 | $this->routes(function () { 41 | Route::prefix('api') 42 | ->middleware('api') 43 | ->namespace($this->namespace) 44 | ->group(base_path('routes/api.php')); 45 | 46 | Route::middleware('web') 47 | ->namespace($this->namespace) 48 | ->group(base_path('routes/web.php')); 49 | }); 50 | } 51 | 52 | /** 53 | * Configure the rate limiters for the application. 54 | * 55 | * @return void 56 | */ 57 | protected function configureRateLimiting() 58 | { 59 | RateLimiter::for('api', function (Request $request) { 60 | return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); 61 | }); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/Services/BulkEditingService.php: -------------------------------------------------------------------------------- 1 | delete($link); 32 | break; 33 | case 'attachGroups': 34 | $linkService->attachOrDetachGroups($link, $groups, true); 35 | break; 36 | case 'detachGroups': 37 | $linkService->attachOrDetachGroups($link, $groups, false); 38 | break; 39 | case 'attachTags': 40 | $linkService->attachOrDetachTags($link, $tags, true); 41 | break; 42 | case 'detachTags': 43 | $linkService->attachOrDetachTags($link, $tags, false); 44 | break; 45 | default: 46 | return; 47 | } 48 | } 49 | 50 | $groupService = app(GroupService::class); 51 | 52 | $groupService->updateUserGroupsLinkCount(Auth::user()); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /app/Services/DeleteUserDataService.php: -------------------------------------------------------------------------------- 1 | deleteLinks($user); 16 | } 17 | 18 | if (in_array('groups', $deleteOptions)) { 19 | $this->deleteGroups($user); 20 | } 21 | 22 | if (in_array('tags', $deleteOptions)) { 23 | $this->deleteTags($user); 24 | } 25 | } 26 | 27 | public function deleteLinks(User $user) 28 | { 29 | Link::where('user_id', $user->id)->delete(); 30 | } 31 | 32 | public function deleteGroups(User $user) 33 | { 34 | Group::where('user_id', $user->id)->delete(); 35 | } 36 | 37 | public function deleteTags(User $user) 38 | { 39 | Tag::where('user_id', $user->id)->delete(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Services/ExportService.php: -------------------------------------------------------------------------------- 1 | id) 17 | ->get() 18 | ->transform(fn(Link $link) => [ 19 | 'title' => trim($link->title), 20 | 'link' => $link->link, 21 | 'createdAt' => $link->created_at->jsonSerialize(), 22 | 'updatedAt' => $link->updated_at->jsonSerialize(), 23 | 'groups' => $link 24 | ->groups() 25 | ->get(['title']) 26 | ->transform(fn(Group $group) => $group->title) 27 | ->toArray(), 28 | 'tags' => $link 29 | ->tags() 30 | ->get() 31 | ->transform(fn(Tag $tag) => $tag->name) 32 | ->toArray() 33 | ]) 34 | ->toArray(); 35 | 36 | $export['groups'] = Group::where('user_id', $user->id) 37 | ->get() 38 | ->transform(fn(Group $group) => [ 39 | 'title' => $group->title, 40 | 'childGroups' => $group 41 | ->groups() 42 | ->get() 43 | ->transform(fn(Group $group) => $group->title) 44 | ->toArray(), 45 | ]) 46 | ->toArray(); 47 | 48 | $export['tags'] = Tag::where('user_id', $user->id) 49 | ->get() 50 | ->transform(fn(Tag $tag) => $tag->name) 51 | ->toArray(); 52 | 53 | return $export; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /app/Services/LinkService.php: -------------------------------------------------------------------------------- 1 | id)->get(['id', 'link'])->groupBy('link')->toArray();; 16 | 17 | return array_filter($groupedLinks, fn($group) => count($group) > 1); 18 | } 19 | 20 | /** 21 | * Remove duplicate links. 22 | */ 23 | public function deleteDuplicates(array $links): void 24 | { 25 | // TODO: Find a cleaner solution. 26 | foreach ($links as $duplicates) { 27 | 28 | if (!is_array($duplicates)) { 29 | continue; 30 | } 31 | 32 | array_pop($duplicates); 33 | 34 | if (empty($duplicates)) { 35 | continue; 36 | } 37 | 38 | foreach ($duplicates as $duplicateLink) { 39 | $link = Link::find($duplicateLink['id']); 40 | 41 | $this->deleteLink($link); 42 | } 43 | } 44 | } 45 | 46 | /** 47 | * Delete the link if not null. 48 | */ 49 | public function deleteLink(?Link $link): void 50 | { 51 | if (is_null($link)) { 52 | return; 53 | } 54 | 55 | $link->delete(); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 65536, 48 | 'threads' => 1, 49 | 'time' => 4, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | *.db* 3 | -------------------------------------------------------------------------------- /database/factories/GroupFactory.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class GroupFactory extends Factory 11 | { 12 | /** 13 | * Define the model's default state. 14 | * 15 | * @return array 16 | */ 17 | public function definition() 18 | { 19 | return [ 20 | // 21 | ]; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /database/factories/LinkFactory.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class LinkFactory extends Factory 12 | { 13 | /** 14 | * Define the model's default state. 15 | * 16 | * @return array 17 | */ 18 | public function definition() 19 | { 20 | return [ 21 | 'link' => $this->faker->url(), 22 | 'title' => $this->faker->city(), 23 | 'user_id' => User::factory(), 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /database/migrations/2022_08_11_143315_add_two_factor_confirmed_column_to_users_table.php: -------------------------------------------------------------------------------- 1 | timestamp('two_factor_confirmed_at') 19 | ->after('two_factor_recovery_codes') 20 | ->nullable(); 21 | } 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::table('users', function (Blueprint $table) { 33 | if (Fortify::confirmsTwoFactorAuthentication()) { 34 | $table->dropColumn('two_factor_confirmed_at'); 35 | } 36 | }); 37 | } 38 | }; 39 | -------------------------------------------------------------------------------- /database/migrations/2022_11_26_194415_remove_media_type_column_from_links_table.php: -------------------------------------------------------------------------------- 1 | dropColumn('media_type'); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | 29 | } 30 | }; 31 | -------------------------------------------------------------------------------- /database/migrations/2023_03_19_203332_add_expires_at_column_to_personal_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | timestamp('expires_at')->nullable()->after('last_used_at'); 15 | }); 16 | } 17 | 18 | /** 19 | * Reverse the migrations. 20 | */ 21 | public function down(): void 22 | { 23 | Schema::table('personal_access_tokens', function (Blueprint $table) { 24 | $table->dropColumn('expires_at'); 25 | }); 26 | } 27 | }; 28 | -------------------------------------------------------------------------------- /database/migrations/2023_04_30_173655_drop_later_table.php: -------------------------------------------------------------------------------- 1 | get(); 16 | 17 | // Move all links from the later list to a new group 18 | foreach ($laterLinks as $laterLink) { 19 | $link = Link::find($laterLink->link_id); 20 | 21 | if (!($group = Group::where('title', 'Later list from migration')->where('user_id', $link->user_id)->first())) { 22 | $group = Group::make(); 23 | 24 | $group->title = 'Later list from migration'; 25 | $group->user_id = $link->user_id; 26 | 27 | $group->save(); 28 | } 29 | 30 | if (!$group->links()->find($link->id)) { 31 | $group->links()->attach($link->id); 32 | } 33 | } 34 | 35 | Schema::table('later', function (Blueprint $table) { 36 | $table->dropIfExists(); 37 | }); 38 | } 39 | }; 40 | -------------------------------------------------------------------------------- /database/migrations/2024_02_19_210136_increase_link_column_size.php: -------------------------------------------------------------------------------- 1 | string('link', 2048)->change(); 15 | }); 16 | } 17 | 18 | /** 19 | * Reverse the migrations. 20 | */ 21 | public function down(): void 22 | { 23 | 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /database/migrations/2024_03_02_180621_create_public_links_tables.php: -------------------------------------------------------------------------------- 1 | id(); 15 | 16 | $table->string('share_id')->unique(); 17 | $table->foreignId('user_id')->constrained()->cascadeOnDelete(); 18 | $table->morphs('public_linkable'); 19 | 20 | $table->timestamps(); 21 | 22 | $table->unique(['public_linkable_type', 'public_linkable_id']); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('public_links'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /database/migrations/2024_04_05_185606_add_query_options_columns_to_groups_table.php: -------------------------------------------------------------------------------- 1 | json('query_options')->nullable()->after('parent_group_id'); 15 | $table->integer('links_count')->default(0)->after('query_options'); 16 | }); 17 | } 18 | 19 | /** 20 | * Reverse the migrations. 21 | */ 22 | public function down(): void 23 | { 24 | Schema::table('groups', function (Blueprint $table) { 25 | $table->dropColumn('query_options', 'links_count'); 26 | }); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create([ 20 | 'name' => 'Admin', 21 | 'email' => 'admin@admin.com' 22 | ]); 23 | 24 | Link::factory(100)->create(['user_id' => 1]); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ ! -f /app/database/database.sqlite ]; then 4 | touch /app/database/database.sqlite 5 | fi 6 | 7 | cd /app 8 | 9 | echo "Starting Migration..." 10 | php artisan migrate --force 11 | 12 | echo "Creating caches..." 13 | php artisan config:cache 14 | php artisan view:cache 15 | 16 | frankenphp run --config /etc/caddy/Caddyfile 17 | -------------------------------------------------------------------------------- /docker/.env.prod.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Servas 2 | APP_ENV=production 3 | APP_KEY= 4 | APP_DEBUG=false 5 | APP_URL=https://your-servas-instance 6 | 7 | SERVAS_ENABLE_REGISTRATION=true 8 | SERVAS_SHOW_APP_VERSION=true 9 | 10 | # SQLite 11 | DB_CONNECTION=sqlite 12 | DB_DATABASE=/app/database/database.sqlite 13 | DB_FOREIGN_KEYS=true 14 | -------------------------------------------------------------------------------- /docker/compose.prod.yaml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | 3 | services: 4 | servas: 5 | image: beromir/servas 6 | container_name: servas 7 | restart: unless-stopped 8 | ports: 9 | - "8080:80" 10 | volumes: 11 | - ./.env:/app/.env 12 | - servas-db-sqlite:/app/database/database.sqlite 13 | 14 | volumes: 15 | servas-db-sqlite: 16 | -------------------------------------------------------------------------------- /docker/config/custom-php-fpm.conf: -------------------------------------------------------------------------------- 1 | [www] 2 | user = root 3 | group = root 4 | 5 | pm = ondemand 6 | pm.max_children = 5 7 | pm.process_idle_timeout = 10s 8 | pm.max_requests = 200 9 | request_terminate_timeout = 60s 10 | -------------------------------------------------------------------------------- /docker/config/custom-php.ini: -------------------------------------------------------------------------------- 1 | ; PHP Production Settings - Security and Performance Optimized 2 | 3 | ; General Settings 4 | memory_limit = 128M 5 | max_execution_time = 30 6 | max_input_time = 30 7 | post_max_size = 8M 8 | upload_max_filesize = 8M 9 | 10 | ; OpCache Settings - Optimized for Production 11 | opcache.enable = 1 12 | opcache.memory_consumption = 64 13 | opcache.interned_strings_buffer = 8 14 | opcache.max_accelerated_files = 5000 15 | opcache.validate_timestamps = 0 16 | opcache.file_cache_consistency_checks = 0 17 | opcache.revalidate_freq = 2 18 | opcache.preload_user = root 19 | opcache.file_cache_only = 0 20 | opcache.file_cache = /var/cache/php/opcache 21 | 22 | ; Realpath Cache Settings 23 | realpath_cache_size = 4096K 24 | realpath_cache_ttl = 3600 25 | 26 | ; Resource Limits 27 | max_file_uploads = 5 28 | max_input_vars = 2000 29 | max_input_nesting_level = 64 30 | -------------------------------------------------------------------------------- /docker/mariadb-example/.env.prod.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Servas 2 | APP_ENV=production 3 | APP_KEY= 4 | APP_DEBUG=false 5 | APP_URL=https://your-servas-instance 6 | 7 | SERVAS_ENABLE_REGISTRATION=true 8 | SERVAS_SHOW_APP_VERSION=true 9 | 10 | # MySQL 11 | DB_CONNECTION=mysql 12 | DB_HOST=db 13 | DB_PORT=3306 14 | DB_DATABASE=servas_db 15 | DB_USERNAME=servas_db_user 16 | DB_PASSWORD=password 17 | -------------------------------------------------------------------------------- /docker/mariadb-example/compose.prod.yaml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | 3 | services: 4 | db: 5 | image: mariadb:10.7.3 6 | restart: unless-stopped 7 | command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin 8 | environment: 9 | - MARIADB_ROOT_PASSWORD=${DB_PASSWORD} 10 | - MARIADB_USER=${DB_USERNAME} 11 | - MARIADB_PASSWORD=${DB_PASSWORD} 12 | - MARIADB_DATABASE=${DB_DATABASE} 13 | volumes: 14 | - servas-db-data:/var/lib/mysql 15 | 16 | servas: 17 | image: beromir/servas 18 | container_name: servas 19 | restart: unless-stopped 20 | depends_on: 21 | - db 22 | ports: 23 | - "8080:80" 24 | volumes: 25 | - ./.env:/app/.env 26 | 27 | volumes: 28 | servas-db-data: 29 | -------------------------------------------------------------------------------- /docs/images/command-palette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/docs/images/command-palette.png -------------------------------------------------------------------------------- /docs/images/groups.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/docs/images/groups.png -------------------------------------------------------------------------------- /docs/images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/docs/images/home.png -------------------------------------------------------------------------------- /docs/images/links.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/docs/images/links.png -------------------------------------------------------------------------------- /docs/images/new-link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/docs/images/new-link.png -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "./", 4 | "paths": { 5 | "@/*": [ 6 | "resources/js/*" 7 | ] 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /lang/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "The :attribute must contain at least one letter.": "The :attribute must contain at least one letter.", 3 | "The :attribute must contain at least one number.": "The :attribute must contain at least one number.", 4 | "The :attribute must contain at least one symbol.": "The :attribute must contain at least one symbol.", 5 | "The :attribute must contain at least one uppercase and one lowercase letter.": "The :attribute must contain at least one uppercase and one lowercase letter.", 6 | "The given :attribute has appeared in a data leak. Please choose a different :attribute.": "The given :attribute has appeared in a data leak. Please choose a different :attribute." 7 | } 8 | -------------------------------------------------------------------------------- /lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'password' => 'The provided password is incorrect.', 18 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 19 | 20 | ]; 21 | -------------------------------------------------------------------------------- /lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have emailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that email address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "type": "module", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build" 7 | }, 8 | "devDependencies": { 9 | "@sveltejs/vite-plugin-svelte": "^3.0.1", 10 | "@tailwindcss/forms": "^0.5.2", 11 | "@tailwindcss/typography": "^0.5.2", 12 | "autoprefixer": "^10.4.13", 13 | "axios": "^1.3", 14 | "clsx": "^2.0.0", 15 | "inter-ui": "^4.0.0", 16 | "laravel-vite-plugin": "^1.0.0", 17 | "lodash": "^4.17.21", 18 | "postcss": "^8.4.14", 19 | "postcss-import": "^15.1", 20 | "svelte": "4.2.19", 21 | "tailwindcss": "^3.3.3", 22 | "vite": "^5.0.10" 23 | }, 24 | "dependencies": { 25 | "@inertiajs/svelte": "^1.0.0" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | ./tests/Unit 10 | 11 | 12 | ./tests/Feature 13 | 14 | 15 | 16 | 17 | ./app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /postcss.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | 'postcss-import': {}, 4 | tailwindcss: {}, 5 | autoprefixer: {}, 6 | }, 7 | } 8 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/assets/favicons/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/public/assets/favicons/android-chrome-192x192.png -------------------------------------------------------------------------------- /public/assets/favicons/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/public/assets/favicons/android-chrome-512x512.png -------------------------------------------------------------------------------- /public/assets/favicons/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/public/assets/favicons/apple-touch-icon.png -------------------------------------------------------------------------------- /public/assets/favicons/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/public/assets/favicons/favicon-16x16.png -------------------------------------------------------------------------------- /public/assets/favicons/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/public/assets/favicons/favicon-32x32.png -------------------------------------------------------------------------------- /public/assets/favicons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/public/assets/favicons/favicon.ico -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/public/favicon.ico -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = $kernel->handle( 52 | $request = Request::capture() 53 | )->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Servas", 3 | "short_name": "Servas", 4 | "icons": [ 5 | { 6 | "src": "/assets/favicons/android-chrome-192x192.png", 7 | "sizes": "192x192", 8 | "type": "image/png" 9 | }, 10 | { 11 | "src": "/assets/favicons/android-chrome-512x512.png", 12 | "sizes": "512x512", 13 | "type": "image/png" 14 | } 15 | ], 16 | "start_url": "/", 17 | "theme_color": "#4e64b7", 18 | "background_color": "#e5e8eb", 19 | "display": "standalone" 20 | } 21 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- 1 | /* Base styles */ 2 | @import 'tailwindcss/base'; 3 | @import "colors.css"; 4 | @import "fonts/inter-ui.css"; 5 | @import "fonts/jetbrains-mono.css"; 6 | 7 | /* Component styles */ 8 | @import 'tailwindcss/components'; 9 | 10 | /* Utility styles */ 11 | @import 'tailwindcss/utilities'; 12 | 13 | @layer components { 14 | .ring-contrast { 15 | @apply dark:ring-1 dark:ring-white/15; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Black.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Black.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Black.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Black.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-BlackItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-BlackItalic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-BlackItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-BlackItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Bold.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Bold.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-BoldItalic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-BoldItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ExtraBold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ExtraBold.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ExtraBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ExtraBold.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ExtraBoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ExtraBoldItalic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ExtraBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ExtraBoldItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ExtraLight.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ExtraLight.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ExtraLight.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ExtraLight.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ExtraLightItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ExtraLightItalic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ExtraLightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ExtraLightItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Italic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Italic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Light.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Light.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-LightItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-LightItalic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-LightItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Medium.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Medium.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-MediumItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-MediumItalic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-MediumItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-MediumItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Regular.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Regular.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-SemiBold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-SemiBold.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-SemiBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-SemiBold.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-SemiBoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-SemiBoldItalic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-SemiBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-SemiBoldItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Thin.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-Thin.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ThinItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ThinItalic.woff -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-ThinItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-ThinItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-italic.var.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-italic.var.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter-roman.var.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter-roman.var.woff2 -------------------------------------------------------------------------------- /resources/fonts/inter-ui/Inter.var.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/inter-ui/Inter.var.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-Bold.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-BoldItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-ExtraBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-ExtraBold.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-ExtraBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-ExtraBoldItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-ExtraLight.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-ExtraLight.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-ExtraLightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-ExtraLightItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-Italic.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-Light.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-LightItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-MediumItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-MediumItalic.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-Thin.woff2 -------------------------------------------------------------------------------- /resources/fonts/jetbrains-mono/JetBrainsMono-ThinItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beromir/Servas/781e704a052dccab53d4d5e4fdaae640015c9046/resources/fonts/jetbrains-mono/JetBrainsMono-ThinItalic.woff2 -------------------------------------------------------------------------------- /resources/js/Components/Auth/AuthenticationCard.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 |
7 |
8 | 9 |
10 | 11 |
12 | 13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /resources/js/Components/Auth/SubmitButton.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | -------------------------------------------------------------------------------- /resources/js/Components/Badge.svelte: -------------------------------------------------------------------------------- 1 | 31 | 32 | dispatch('clicked')} {...$$restProps} 33 | class={['inline-flex items-center font-medium select-none', 34 | $$restProps.class, getColorClasses(), sizeClasses, hoverClasses, roundedClasses].join(' ').trim()}> 35 | {title} 36 | 37 | -------------------------------------------------------------------------------- /resources/js/Components/BreadcrumbNavigation/BreadcrumbNavContainer.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 | 31 | -------------------------------------------------------------------------------- /resources/js/Components/BreadcrumbNavigation/BreadcrumbNavItem.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 |
  • 9 |
    10 | 14 | {#if link !== ''} 15 | 17 | {title} 18 | 19 | 20 | {:else} 21 | 23 | {title} 24 | 25 | {/if} 26 | 27 |
    28 |
  • 29 | -------------------------------------------------------------------------------- /resources/js/Components/Container.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
    6 | 7 |
    8 | -------------------------------------------------------------------------------- /resources/js/Components/Dropdowns/Dropdown.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 | 21 | {#if showDropdown} 22 |
    showDropdown = false} {...$$restProps} 23 | in:scale={{ duration: 100, easing: cubicOut, start: 0.95 }} 24 | out:scale={{ duration: 75, easing: cubicIn, start: 0.95 }} 25 | class={clsx($$restProps.class, openingDirection === 'right' ? 'left-0 origin-top-left' : 'right-0 origin-top-right', 'absolute z-10 mt-6 w-44 divide-y divide-gray-200 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none md:w-56 dark:bg-gray-900 dark:ring-contrast dark:divide-gray-700')} 26 | role="menu" aria-orientation="vertical" aria-labelledby="menu-button" tabindex="-1"> 27 | 28 |
    29 | {/if} 30 | -------------------------------------------------------------------------------- /resources/js/Components/Dropdowns/DropdownItem.svelte: -------------------------------------------------------------------------------- 1 | 22 | 23 | 33 | -------------------------------------------------------------------------------- /resources/js/Components/Dropdowns/InnerDropdownSection.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
    6 | {#if title} 7 |
    8 | {title} 9 |
    10 | {/if} 11 | 12 |
    13 | -------------------------------------------------------------------------------- /resources/js/Components/EmptyStates/EmptyState.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 8 | 10 | 12 | 13 | 14 | {title} 15 | 16 | -------------------------------------------------------------------------------- /resources/js/Components/EmptyStates/EmptyStateWithAction.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 |
    11 | 23 |
    24 | -------------------------------------------------------------------------------- /resources/js/Components/FormLayouts/Inputs/Checkbox.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 |
    9 | 11 | 12 |
    13 | 14 | {#if error} 15 |
    {error}
    16 | {/if} 17 | -------------------------------------------------------------------------------- /resources/js/Components/FormLayouts/Inputs/FileUpload.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | 21 | -------------------------------------------------------------------------------- /resources/js/Components/FormLayouts/Inputs/Radio.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 |
    10 | currentValue = event.target.checked ? value : currentValue} 11 | {id} {name} {value} checked={value === currentValue} {...$$restProps} 12 | class="text-primary-600 focus:ring-primary-600 dark:bg-gray-800 dark:border-gray-600 dark:focus:ring-offset-gray-800"> 13 | 14 |
    15 | -------------------------------------------------------------------------------- /resources/js/Components/FormLayouts/Inputs/RadioGroup.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
    6 | {label} 7 |
    8 | 9 |
    10 |
    11 | -------------------------------------------------------------------------------- /resources/js/Components/FormLayouts/Inputs/Text.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 |
    10 | 14 |
    15 | value = e.target.value} 16 | class="block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-primary-500 focus:outline-none focus:ring-primary-500 sm:text-sm dark:text-gray-50 dark:bg-gray-900 dark:border-gray-500"> 17 | {#if error} 18 |
    {error}
    19 | {/if} 20 |
    21 |
    22 | -------------------------------------------------------------------------------- /resources/js/Components/FormLayouts/Modals/Container.svelte: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    4 | -------------------------------------------------------------------------------- /resources/js/Components/FormLayouts/Modals/Input.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 |
    13 | 17 |
    18 | value = e.target.value} 19 | class="block max-w-xl w-full shadow-sm focus:ring-primary-500 focus:border-primary-500 sm:text-sm border-gray-400 rounded-md dark:bg-gray-800 dark:text-white dark:placeholder-gray-400 dark:border-gray-600"> 20 | {#if error} 21 |
    {error}
    22 | {/if} 23 |
    24 |
    25 | -------------------------------------------------------------------------------- /resources/js/Components/Icons/Logo.svelte: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /resources/js/Components/Inputs/Input.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | value = e.target.value} 13 | class={['shadow-sm focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-400 rounded-md dark:bg-gray-800 dark:text-white dark:placeholder-gray-400 dark:border-gray-600', $$restProps.class].join(' ').trim()}> 14 | -------------------------------------------------------------------------------- /resources/js/Components/Navigation/MenuButton.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 | 19 | -------------------------------------------------------------------------------- /resources/js/Components/Navigation/MenuItem.svelte: -------------------------------------------------------------------------------- 1 | 23 | 24 | 26 |
    27 | 28 |
    29 | 30 | {title} 31 | 32 | -------------------------------------------------------------------------------- /resources/js/Components/Toggles/Toggle.svelte: -------------------------------------------------------------------------------- 1 | 16 | 17 |
    18 | 29 | 30 | 31 | {title} 32 | 33 |
    34 | -------------------------------------------------------------------------------- /resources/js/Components/Widgets/Widget.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 |
    8 |

    {title}

    9 |
    14 | 15 |
    16 |
    17 | -------------------------------------------------------------------------------- /resources/js/Components/Widgets/WidgetContainer.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Micro/Plus.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 8 | 9 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Micro/XMark.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 8 | 9 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/ComputerDesktop.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/Home.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/Inbox.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/Link.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/Minus.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 8 | 9 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/Moon.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/Plus.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 8 | 9 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/PlusCircle.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/Sun.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Mini/Tag.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Outline/Link.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /resources/js/Heroicons/Outline/Tag.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 9 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /resources/js/Jetstream/ActionMessage.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 18 | -------------------------------------------------------------------------------- /resources/js/Jetstream/ActionSection.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 |
    19 |
    20 |
    21 | -------------------------------------------------------------------------------- /resources/js/Jetstream/ApplicationMark.svelte: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /resources/js/Jetstream/AuthenticationCard.svelte: -------------------------------------------------------------------------------- 1 |
    2 | 3 | 4 |
    5 | 6 |
    7 |
    8 | -------------------------------------------------------------------------------- /resources/js/Jetstream/Button.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | 17 | -------------------------------------------------------------------------------- /resources/js/Jetstream/Checkbox.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | 11 | -------------------------------------------------------------------------------- /resources/js/Jetstream/ConfirmationModal.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 |
    14 |
    15 |
    17 | 18 | 20 | 21 |
    22 | 23 |
    24 |

    25 | 26 |

    27 | 28 |
    29 | 30 |
    31 |
    32 |
    33 |
    34 | 35 |
    36 | 37 |
    38 |
    39 | -------------------------------------------------------------------------------- /resources/js/Jetstream/DangerButton.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /resources/js/Jetstream/DialogModal.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 |
    14 |
    15 | 16 |
    17 | 18 |
    19 | 20 |
    21 |
    22 | 23 |
    24 | 25 |
    26 |
    27 | -------------------------------------------------------------------------------- /resources/js/Jetstream/Dropdown.svelte: -------------------------------------------------------------------------------- 1 | 23 | 24 |
    25 |
    open = !open}> 26 | 27 |
    28 | 29 | 30 | {#if open} 31 |
    open = false}> 32 |
    33 | {/if} 34 | 35 | {#if open} 36 |
    open = false}> 38 |
    39 | 40 |
    41 |
    42 | {/if} 43 |
    44 | -------------------------------------------------------------------------------- /resources/js/Jetstream/DropdownLink.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | {#if !href} 9 | 14 | {:else} 15 | 17 | 18 | 19 | {/if} 20 | -------------------------------------------------------------------------------- /resources/js/Jetstream/FormSection.svelte: -------------------------------------------------------------------------------- 1 | 15 | 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
    27 |
    dispatch('submitted')} bind:this={form} {...$$restProps}> 28 |
    30 |
    31 | 32 |
    33 |
    34 | 35 | {#if hasActions} 36 |
    38 | 39 |
    40 | {/if} 41 |
    42 |
    43 |
    44 | -------------------------------------------------------------------------------- /resources/js/Jetstream/Input.svelte: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /resources/js/Jetstream/InputError.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | {#if !isUndefined(message)} 8 |

    9 | {message} 10 |

    11 | {/if} 12 | -------------------------------------------------------------------------------- /resources/js/Jetstream/Label.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 | {#if label} 12 | 13 | {/if} 14 | -------------------------------------------------------------------------------- /resources/js/Jetstream/Modal.svelte: -------------------------------------------------------------------------------- 1 | 20 | 21 | {#if show} 22 |
    23 |
    {if (closeable) dispatch('close')}} aria-hidden="true"> 24 |
    25 |
    26 | 27 |
    29 | 30 |
    31 |
    32 | {/if} 33 | -------------------------------------------------------------------------------- /resources/js/Jetstream/NavLink.svelte: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /resources/js/Jetstream/SecondaryButton.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /resources/js/Jetstream/SectionBorder.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /resources/js/Jetstream/SectionTitle.svelte: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |

    4 | 5 |

    6 | 7 |

    8 | 9 |

    10 |
    11 | 12 |
    13 | 14 |
    15 |
    16 | -------------------------------------------------------------------------------- /resources/js/Jetstream/SuccessMessage.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {#if show} 7 |
    8 | {message} 9 |
    10 | {/if} 11 | -------------------------------------------------------------------------------- /resources/js/Jetstream/ValidationErrors.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 | {#if hasErrors} 11 |
    12 |
    Whoops! Something went wrong.
    13 | 14 | 19 |
    20 | {/if} 21 | -------------------------------------------------------------------------------- /resources/js/Layouts/AppLayout/Partials/Main.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 |
    10 | 11 | {#if title} 12 |
    14 | {#if title} 15 |

    {title}

    16 | {/if} 17 | 18 |
    19 |
    20 | 21 | {#if showNewLinkButton} 22 | 32 | {/if} 33 |
    34 | {/if} 35 | 36 |
    37 | 38 | 39 |
    40 |
    41 | -------------------------------------------------------------------------------- /resources/js/Layouts/GuestLayout.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 18 | 19 | 20 | {$title ? `${$title} | ${appName}` : appName} 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /resources/js/Pages/API/Index.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 17 | 18 |
    19 |
    20 |
    21 | 22 |
    23 |
    24 |
    25 | -------------------------------------------------------------------------------- /resources/js/Pages/Inbox/Index.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 52 | 53 |
    54 | 55 |
    56 | toggleUntagged(e.detail)} toggled={untagged} title="Untagged"/> 57 | toggleUngrouped(e.detail)} toggled={ungrouped} title="Ungrouped"/> 58 |
    59 |
    60 |
    61 | -------------------------------------------------------------------------------- /resources/js/Pages/Links/Index.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 18 | 19 |
    20 | 21 |
    22 | -------------------------------------------------------------------------------- /resources/js/Pages/Profile/Partials/ExportUserDataForm.svelte: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | Export Data 26 | 27 | 28 | 29 | Export your account data as JSON or HTML. 30 | 31 | 32 | 33 | 34 | 35 |
    36 | 37 | 38 | 39 | 40 |
    41 |
    42 | 43 | 44 | 45 | Export 46 | 47 | 48 |
    49 | -------------------------------------------------------------------------------- /resources/js/Pages/Tags/Index.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 21 | 22 |
    23 |
    24 | 25 | 26 |
    27 | {#each tags as tag (tag.id)} 28 | newTagComponent.initEditMode(tag)} class="mr-2 first:mt-4 last:mr-0" 29 | title={tag.name}/> 30 | {:else} 31 | newTagComponent.focus()} title="Add a new tag" 32 | class="mt-2 sm:mt-4"> 33 | 34 | 35 | {/each} 36 |
    37 |
    38 |
    39 | -------------------------------------------------------------------------------- /resources/js/Partials/DeleteGroupModal.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | 29 | 30 | 31 |

    32 | Are you sure you want to delete this group? 33 |

    34 |
    35 | {group.title} 36 |
    37 | 38 | 39 |