the file structure has been created and the application's basic architecture has been defined
17
.editorconfig
Normal file
@@ -0,0 +1,17 @@
|
||||
# Editor configuration, see https://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.ts]
|
||||
quote_type = single
|
||||
ij_typescript_use_double_quotes = false
|
||||
|
||||
[*.md]
|
||||
max_line_length = off
|
||||
trim_trailing_whitespace = false
|
||||
43
.gitignore
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
# Compiled output
|
||||
/dist
|
||||
/tmp
|
||||
/out-tsc
|
||||
/bazel-out
|
||||
|
||||
# Node
|
||||
/node_modules
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
|
||||
# IDEs and editors
|
||||
.idea/
|
||||
.project
|
||||
.classpath
|
||||
.c9/
|
||||
*.launch
|
||||
.settings/
|
||||
*.sublime-workspace
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
!.vscode/mcp.json
|
||||
.history/*
|
||||
|
||||
# Miscellaneous
|
||||
/.angular/cache
|
||||
.sass-cache/
|
||||
/connect.lock
|
||||
/coverage
|
||||
/libpeerconnection.log
|
||||
testem.log
|
||||
/typings
|
||||
__screenshots__/
|
||||
|
||||
# System files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
.env
|
||||
12
.prettierrc
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"printWidth": 100,
|
||||
"singleQuote": true,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.html",
|
||||
"options": {
|
||||
"parser": "angular"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
4
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
|
||||
"recommendations": ["angular.ng-template"]
|
||||
}
|
||||
20
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "ng serve",
|
||||
"type": "chrome",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "npm: start",
|
||||
"url": "http://localhost:4200/"
|
||||
},
|
||||
{
|
||||
"name": "ng test",
|
||||
"type": "chrome",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "npm: test",
|
||||
"url": "http://localhost:9876/debug.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
9
.vscode/mcp.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
// For more information, visit: https://angular.dev/ai/mcp
|
||||
"servers": {
|
||||
"angular-cli": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@angular/cli", "mcp"]
|
||||
}
|
||||
}
|
||||
}
|
||||
42
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "npm",
|
||||
"script": "start",
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": {
|
||||
"regexp": "Changes detected"
|
||||
},
|
||||
"endsPattern": {
|
||||
"regexp": "bundle generation (complete|failed)"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "npm",
|
||||
"script": "test",
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"owner": "typescript",
|
||||
"pattern": "$tsc",
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": {
|
||||
"regexp": "Changes detected"
|
||||
},
|
||||
"endsPattern": {
|
||||
"regexp": "bundle generation (complete|failed)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
59
README.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# Abdristus
|
||||
|
||||
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.2.3.
|
||||
|
||||
## Development server
|
||||
|
||||
To start a local development server, run:
|
||||
|
||||
```bash
|
||||
ng serve
|
||||
```
|
||||
|
||||
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
|
||||
|
||||
## Code scaffolding
|
||||
|
||||
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
||||
|
||||
```bash
|
||||
ng generate component component-name
|
||||
```
|
||||
|
||||
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
||||
|
||||
```bash
|
||||
ng generate --help
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To build the project run:
|
||||
|
||||
```bash
|
||||
ng build
|
||||
```
|
||||
|
||||
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
|
||||
|
||||
## Running unit tests
|
||||
|
||||
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
|
||||
|
||||
```bash
|
||||
ng test
|
||||
```
|
||||
|
||||
## Running end-to-end tests
|
||||
|
||||
For end-to-end (e2e) testing, run:
|
||||
|
||||
```bash
|
||||
ng e2e
|
||||
```
|
||||
|
||||
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
||||
|
||||
## Additional Resources
|
||||
|
||||
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
||||
73
angular.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"cli": {
|
||||
"packageManager": "npm"
|
||||
},
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"abdristus": {
|
||||
"projectType": "application",
|
||||
"schematics": {},
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"prefix": "app",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular/build:application",
|
||||
"options": {
|
||||
"browser": "src/main.ts",
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"assets": [
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "public"
|
||||
}
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.css"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "500kB",
|
||||
"maximumError": "1MB"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "4kB",
|
||||
"maximumError": "8kB"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
},
|
||||
"development": {
|
||||
"optimization": false,
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular/build:dev-server",
|
||||
"configurations": {
|
||||
"production": {
|
||||
"buildTarget": "abdristus:build:production"
|
||||
},
|
||||
"development": {
|
||||
"buildTarget": "abdristus:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular/build:unit-test"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
63
docs/ARCHITECTURE.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# Architectural Guidance: Кроссплатформенный Менеджер Паролей
|
||||
|
||||
Эта документация детально описывает архитектурные решения, структуру проекта и стандарты разработки, обеспечивающие безопасность, масштабируемость и поддерживаемость системы.
|
||||
|
||||
## 1. Архитектурные принципы и паттерны
|
||||
|
||||
### Backend (Rust / Tauri)
|
||||
- **Separation of Concerns (SoC):** Четкое разделение между инфраструктурой Tauri (`commands/`), бизнес-логикой (`core/`) и слоем данных (`database/`).
|
||||
- **Dependency Inversion:** Ядро системы (`core/`) не зависит от деталей реализации Tauri.
|
||||
- **Repository Pattern:** Работа с SQLite инкапсулирована в репозиториях, что позволяет легко менять схему БД или переходить на другой движок.
|
||||
|
||||
### Frontend (Angular)
|
||||
- **Domain-Driven Design (DDD):** Структура папок организована вокруг бизнес-доменов (`auth`, `vault`), а не технических типов (все компоненты в одной куче).
|
||||
- **Strategy Pattern:** Используется в `CryptoStrategyService` для гибкого переключения между методами аутентификации (пароль, биометрия).
|
||||
- **Adapter Pattern:** `TauriIpcService` скрывает детали взаимодействия с Tauri API, предоставляя чистые RxJS интерфейсы.
|
||||
- **Smart/Dumb Components:** Четкое разделение ответственности: "умные" компоненты управляют состоянием, "глупые" — только отображением.
|
||||
|
||||
## 2. Структура папок и именование
|
||||
|
||||
### Backend Structure (`src-tauri/src/`)
|
||||
```text
|
||||
src-tauri/src/
|
||||
├── commands/ # Обработчики IPC. Имя: [domain].rs (например, auth.rs)
|
||||
├── core/ # Математика и логика. Имя: [feature].rs (например, crypto.rs)
|
||||
├── database/ # SQL и миграции.
|
||||
├── events/ # Рассылка событий во фронтенд.
|
||||
└── main.rs # Конфигурация приложения.
|
||||
```
|
||||
|
||||
### Frontend Structure (`src/app/`)
|
||||
```text
|
||||
src/app/
|
||||
├── core/ # Singleton сервисы (Crypto, Auth, Ipc)
|
||||
├── models/ # Классы сущностей. Имя: [name].model.ts
|
||||
├── shared/ # UI-кит (Buttons, Inputs, Cards)
|
||||
└── features/ # Модули фич. Свои компоненты, роуты и локальные сервисы.
|
||||
```
|
||||
|
||||
## 3. Контракты и интерфейсы (Примеры)
|
||||
|
||||
### IPC Command (Rust -> TS)
|
||||
**Rust:**
|
||||
```rust
|
||||
#[tauri::command]
|
||||
pub async fn decrypt_vault(password: String, vault_path: PathBuf) -> Result<VaultData, String> { ... }
|
||||
```
|
||||
|
||||
**TypeScript:**
|
||||
```typescript
|
||||
interface VaultData {
|
||||
accounts: AccountDTO[];
|
||||
updatedAt: number;
|
||||
}
|
||||
```
|
||||
|
||||
## 4. Стратегия безопасности
|
||||
1. **Zero Trust Storage:** Данные шифруются индивидуальным ключом DEK, который не хранится на диске без системной защиты (Keyring).
|
||||
2. **Memory Safety:** Rust гарантирует отсутствие утечек памяти в ядре. В Angular `VaultService` обязуется очищать `BehaviorSubject` при потере фокуса или блокировке.
|
||||
3. **Argon2id:** Минимум 2 прохода, 64МБ памяти (настраиваемо) для защиты от брутфорса.
|
||||
|
||||
## 5. Управление зависимостями
|
||||
- **Rust:** Использование `cargo-edit` для контроля версий. Минимизация `unsafe` кода.
|
||||
- **Frontend:** Строгое следование версиям в `package.json`. Использование `ESLint` со строгими правилами для Angular.
|
||||
97
docs/DESIGN.md
Normal file
@@ -0,0 +1,97 @@
|
||||
```markdown
|
||||
# Design System Specification: Monolithic Security & Technical Elegance
|
||||
|
||||
## 1. Overview & Creative North Star
|
||||
The Creative North Star for this design system is **"The Monolithic Vault."**
|
||||
|
||||
This system moves away from the "airy" and "playful" trends of modern SaaS, opting instead for a visual language rooted in utility, high-stakes security, and technical precision. It is an editorial approach to software where every element feels carved from a single block of obsidian. By utilizing intentional asymmetry, deep tonal layering, and "Ghost Borders," we create a high-end experience that feels both impenetrable and sophisticated.
|
||||
|
||||
The goal is to provide a "Curated Technical" vibe—where the density of information (like the reference grid) is balanced by generous outer margins and sophisticated glass transitions. We break the template by treating the background not as a flat canvas, but as a series of receding depths.
|
||||
|
||||
---
|
||||
|
||||
## 2. Colors & Surface Philosophy
|
||||
The palette is built on deep blacks and "Noble Orange" accents, prioritizing retinal comfort and high-end aesthetic value.
|
||||
|
||||
### Tonal Hierarchy
|
||||
- **Base (The Void):** `surface` (#131313) or `surface_container_lowest` (#0E0E0E). Used for the primary app background to establish depth.
|
||||
- **Surface (The Stage):** `surface_container` (#201F1F). Used for primary content areas.
|
||||
- **Elevated (The Highlight):** `surface_container_highest` (#353534). Used for cards or active nested containers.
|
||||
|
||||
### The "No-Line" Rule
|
||||
Traditional 1px solid borders are strictly prohibited for sectioning. Boundaries must be defined through background color shifts. To separate a sidebar from a main feed, use `surface_container_low` against a `surface` background. The eye should perceive a change in "mass," not a line.
|
||||
|
||||
### Surface Hierarchy & Nesting
|
||||
Think of the UI as physical layers. An inner table or data grid should occupy a `surface_container_lowest` slot, creating an "inset" feel (Neumorphic debt) within a `surface_container` parent. This "carved out" effect enhances the feeling of a technical tool.
|
||||
|
||||
### Glass & Gradient Rule
|
||||
For floating elements (modals, active menu states, or dropdowns), utilize **Glassmorphism**.
|
||||
- **Fill:** `surface_bright` at 60% opacity.
|
||||
- **Backdrop-Blur:** 12px to 20px.
|
||||
- **Stroke:** Use the "Ghost Border" (1px `outline_variant` at 10% opacity) to catch the light.
|
||||
|
||||
---
|
||||
|
||||
## 3. Typography
|
||||
The typography strategy is "Technical Editorial." We pair the Swiss-style precision of **Inter** with the monospaced authority of **JetBrains Mono**.
|
||||
|
||||
- **Inter (UI & Navigation):** Used for all structural elements. It provides a clean, neutral foundation that doesn't distract from the data.
|
||||
- **JetBrains Mono (Data & Codes):** Used for passwords, monetary values, timestamps, and technical labels. This injects a sense of "under-the-hood" transparency and precision.
|
||||
|
||||
### Key Scales
|
||||
- **Display-LG (3.5rem):** High-contrast, low-tracking titles for impact.
|
||||
- **Headline-SM (1.5rem):** For primary section headers.
|
||||
- **Label-MD (0.75rem):** Always in JetBrains Mono for a technical, metadata feel.
|
||||
- **Body-MD (0.875rem):** The workhorse for all interface text.
|
||||
|
||||
---
|
||||
|
||||
## 4. Elevation & Depth
|
||||
In this design system, depth is achieved through **Tonal Layering** rather than structural geometry.
|
||||
|
||||
- **The Layering Principle:** Avoid shadows for static layout components. Instead, place a `surface_container_lowest` card inside a `surface_container_low` section. This creates a soft, natural "recess" (Minimalist Neumorphism) without visual clutter.
|
||||
- **Ambient Shadows:** For floating components like Tooltips or Modals, use a "Shadow-Glow."
|
||||
- **Blur:** 40px - 60px.
|
||||
- **Opacity:** 6% of `on_surface`.
|
||||
- **Color:** Tinted slightly toward the `primary` (#FFB694) to simulate light refraction.
|
||||
- **The "Ghost Border":** When high precision is required (as seen in the reference table header), use a 1px line at `outline_variant` (#574239) with only **10-15% opacity**. This should look like a faint reflection, not a structural divider.
|
||||
|
||||
---
|
||||
|
||||
## 5. Components
|
||||
|
||||
### Buttons
|
||||
- **Primary:** `primary_container` (#C2571A) background with `on_primary_container` text. Use `sm` (0.125rem) or `none` roundedness for a sharper, monolithic look.
|
||||
- **Secondary:** Transparent background with a `Ghost Border`.
|
||||
- **Tertiary:** Text-only in `primary` color, used for low-priority actions.
|
||||
|
||||
### Technical Grids (Tables)
|
||||
Follow the reference image logic:
|
||||
- **Header:** `surface_container_highest` with a subtle top "Ghost Border."
|
||||
- **Rows:** No horizontal lines. Use a slight color shift on `:hover` to `surface_bright` at 10% opacity.
|
||||
- **Spacing:** Use `spacing-4` (0.9rem) between data cells to ensure readability without lines.
|
||||
|
||||
### Input Fields
|
||||
- **Container:** `surface_container_lowest` (#0E0E0E) to create an "inset" appearance.
|
||||
- **Focus State:** 1px "Ghost Border" at 30% opacity using `primary` color. No heavy glow.
|
||||
- **Font:** Use **JetBrains Mono** for the input text itself to emphasize the technical nature of the data.
|
||||
|
||||
### Tooltips & Menus
|
||||
- Use the **Glassmorphism** rule.
|
||||
- Roundedness should be `md` (0.375rem) to slightly soften the technical edge for interactive elements.
|
||||
|
||||
---
|
||||
|
||||
## 6. Do's and Don'ts
|
||||
|
||||
### Do
|
||||
- **Do** use `JetBrains Mono` for any value that feels like "data" (dates, amounts, IDs).
|
||||
- **Do** prioritize vertical whitespace over horizontal lines.
|
||||
- **Do** use `primary_container` (#C2571A) sparingly; it is a "noble" accent meant to guide the eye to critical actions only.
|
||||
- **Do** apply `backdrop-blur` to any element that sits "above" the base surface.
|
||||
|
||||
### Don't
|
||||
- **Don't** use pure white (#FFFFFF) for text. Always use `on_surface` (#E5E2E1) or `on_surface_variant` (#DEC0B4) to maintain the premium dark-mode depth.
|
||||
- **Don't** use standard Material Design "Drop Shadows." They feel "cheap" in this monolithic context.
|
||||
- **Don't** use high roundedness (full circles) unless it is for a specific, functional icon container. Stick to `sm` and `none` for layout boxes.
|
||||
- **Don't** ever use a 100% opaque border for sectioning. It breaks the "Monolithic Vault" illusion.
|
||||
91
docs/PRD.md
Normal file
@@ -0,0 +1,91 @@
|
||||
# Product Requirements Document (PRD): Кроссплатформенный Менеджер Паролей
|
||||
|
||||
## 1. Обзор продукта
|
||||
|
||||
Локальный, строго типизированный кроссплатформенный менеджер паролей с поддержкой многопользовательского режима, надежным шифрованием данных "в покое" (data-at-rest) и подготовленной архитектурой для будущей облачной синхронизации и интеграции с браузерными расширениями.
|
||||
|
||||
**Технологический стек:**
|
||||
- **Backend / Ядро:** Rust (Tauri) — отвечает за криптографию, работу с ФС, БД и системными API (биометрия).
|
||||
- **Frontend:** Angular (TypeScript) — отвечает за UI, строгую ООП-архитектуру, управление состояниями и валидацию.
|
||||
- **База данных:** SQLite (через Rust).
|
||||
## 2. Архитектура безопасности и хранения данных
|
||||
Безопасность строится на принципе нулевого доверия к окружению (Zero Trust Local Storage). Даже при полной компрометации устройства (кража диска или копирование файла БД), злоумышленник не должен получить доступ к данным без знания Мастер-пароля.
|
||||
### 2.1. Криптографическая схема
|
||||
- **Деривация ключа (Key Derivation):** Мастер-пароль пользователя никогда не хранится в явном виде. При вводе он пропускается через функцию **Argon2id** (устойчивую к атакам на GPU/ASIC) вместе со случайной солью. Результатом является Ключ Шифрования Данных (Data Encryption Key - **DEK**).
|
||||
- **Шифрование полезной нагрузки:** Для шифрования самих паролей и заметок используется алгоритм **XChaCha20-Poly1305** (AEAD — Authenticated Encryption with Associated Data). Он быстрее и безопаснее стандартного AES на программном уровне и проверяет целостность данных.
|
||||
- **Что шифруется:** Логины, пароли, заметки и привязанные почты шифруются. Метаданные (UUID записи, дата создания) можно оставить открытыми для упрощения синхронизации в будущем.
|
||||
### 2.2. База данных (SQLite) и многопользовательский режим
|
||||
- Каждый пользователь имеет свой отдельный файл базы данных (например, `vault_<user_uuid>.sqlite`). Это изолирует данные пользователей друг от друга и радикально упрощает будущую синхронизацию (не нужно фильтровать чужие записи).
|
||||
- **Схема таблицы `accounts` (задел под синхронизацию):**
|
||||
- `id` (TEXT, UUIDv4) — Первичный ключ.
|
||||
- `service_name` (TEXT) — Название сервиса.
|
||||
- `encrypted_data` (BLOB) — Зашифрованный JSON с логином, паролем, ссылкой и тегами.
|
||||
- `nonce` (BLOB) — Уникальный вектор инициализации для расшифровки XChaCha20.
|
||||
- `updated_at` (INTEGER) — Unix timestamp последнего изменения. **Критично для будущей синхронизации** (разрешение конфликтов LWW - Last Write Wins).
|
||||
- `is_deleted` (BOOLEAN) — Soft-delete (мягкое удаление). При удалении запись не стирается, а помечается удаленной, чтобы при будущей синхронизации другие устройства узнали об удалении.
|
||||
### 2.3. Биометрия (Touch ID / Windows Hello)
|
||||
- **Логика работы:** При успешном вводе Мастер-пароля, полученный ключ **DEK** шифруется средствами операционной системы (через системный Keyring/Связку ключей/Windows Credential Manager) и сохраняется там.
|
||||
- При следующем входе приложение запрашивает биометрическую аутентификацию через системный API (в Rust для этого используются крейты `keyring` или платформозависимые вызовы). При успехе ОС отдает приложению **DEK**, и база расшифровывается без ввода пароля.
|
||||
## 3. Frontend Архитектура (Angular + OOP)
|
||||
Код должен быть максимально модульным, тестируемым и следовать принципам SOLID.
|
||||
### 3.1. Основные слои (Dependency Injection)
|
||||
1. **Domain Models (Модели данных):** Классы `Account`, `UserVault`, `Tag`. Модели не содержат бизнес-логики, только структуру и методы-геттеры/сеттеры.
|
||||
2. **Services (Бизнес-логика):**
|
||||
- `TauriIpcService`: Абстракция над `window.__TAURI__.invoke`. Реализует паттерн **Adapter**, изолируя Angular от специфики Tauri.
|
||||
- `CryptoStrategyService`: Реализует паттерн **Strategy** для выбора метода авторизации (Мастер-пароль или Биометрия).
|
||||
- `VaultService`: Управляет состоянием расшифрованных паролей в оперативной памяти (в виде RxJS `BehaviorSubject`). При блокировке приложения этот сервис немедленно очищает данные из памяти.
|
||||
3. **Components (UI):** Разделены на "Умные" (Smart/Container) — общаются с сервисами, и "Глупые" (Dumb/Presentational) — только отображают данные (кнопки, формы ввода, карточки паролей).
|
||||
### 3.2. Паттерны проектирования в UI
|
||||
- **Observer (через RxJS):** Компоненты подписываются на изменения в `VaultService`. Если в фоновом режиме (или через окно быстрого добавления) добавился пароль, список в главном окне обновляется реактивно.
|
||||
- **Visitor:** Для будущей реализации экспорта (в CSV, JSON). Класс `Account` принимает "посетителя" `CsvExportVisitor`, который знает, как правильно отформатировать поля аккаунта для выгрузки, не нарушая инкапсуляцию самого аккаунта.
|
||||
## 4. Подготовка к будущим фичам (Future-Proofing)
|
||||
### 4.1. Задел для облачной синхронизации
|
||||
Так как на старте используется локальный SQLite с полями `updated_at` и `is_deleted` (Soft-delete), в будущем реализация синхронизации сведется к написанию фонового процесса (в Rust), который будет:
|
||||
1. Запрашивать у сервера все записи с `updated_at` больше, чем время последней синхронизации.
|
||||
2. Отправлять на сервер локальные записи, которые изменились с момента последней синхронизации.
|
||||
3. Сервер (когда он появится) будет просто передавать зашифрованные BLOB-ы (E2E шифрование), ничего не зная о содержимом.
|
||||
### 4.2. Задел для браузерного расширения
|
||||
Чтобы расширение могло общаться с десктопным приложением (забирать пароли и сохранять новые), приложение на Tauri должно выступать в роли сервера.
|
||||
- **Архитектурное решение:** В ядре Rust поднимается легковесный локальный WebSocket-сервер или используется механизм **Native Messaging** (стандарт для Chrome/Firefox).
|
||||
- Все запросы от браузера проверяются на подлинность (расширение и десктопное приложение обмениваются криптографическими токенами при первичном сопряжении). На текущем этапе (MVP) этот сервер не реализуется, но API-функции для получения конкретного пароля по URL сайта на стороне Rust проектируются заранее, чтобы их можно было легко обернуть в сетевой интерфейс позже.
|
||||
## 5. Требования к UI / UX
|
||||
- **Горячие клавиши (Global Shortcuts):** Окно "быстрого добавления/поиска" (Spotlight-like) вызывается системным шорткатом (например, `Cmd/Ctrl + Shift + Space`). Работает глобально, даже если главное окно закрыто. Реализуется через `tauri-plugin-global-shortcut`.
|
||||
- **Генератор паролей:** Интегрирован прямо в форму создания аккаунта. При фокусе на поле "Пароль" предлагается сгенерированная строка. Сложность (длина, спецсимволы) настраивается в параметрах.
|
||||
- **Автоматическая блокировка:** По таймеру бездействия (настраивается пользователем, например, 5 минут) или при блокировке операционной системы приложение уничтожает расшифрованные данные из памяти Angular и требует повторного сканирования биометрии или ввода пароля.
|
||||
## 6. Структура проекта (Репозиторий и src-файлы)
|
||||
Проект строится по принципу монорепозитория, разделенного на два изолированных контекста: системный бэкенд (Tauri/Rust) и фронтенд-интерфейс (Angular).
|
||||
### 6.1. Backend: Ядро на Rust (`/src-tauri/src/`)
|
||||
Структура следует принципам чистого кода, жестко отделяя инфраструктуру Tauri от чистой бизнес-логики и работы с базой данных.
|
||||
- `main.rs` — Точка входа. Регистрация плагинов, глобальных шорткатов, инициализация БД и запуск Tauri-приложения.
|
||||
- `commands/` — Обработчики вызовов от фронтенда (Tauri IPC Commands). Здесь функции получают аргументы от UI и делегируют работу ядру.
|
||||
- `auth.rs` (апи для авторизации и сканирования биометрии)
|
||||
- `vault.rs` (сохранение и получение записей)
|
||||
- `core/` — Изолированная бизнес-логика, которая ничего не знает про Tauri (максимально тестируемый код).
|
||||
- `crypto.rs` (реализация шифрования XChaCha20-Poly1305 и деривации ключей Argon2id)
|
||||
- `password_gen.rs` (генератор надежных паролей)
|
||||
- `database/` — Слой абстракции над SQLite.
|
||||
- `schema.sql` (миграции базы данных)
|
||||
- `models.rs` (структуры данных Rust для маппинга таблиц БД)
|
||||
- `repository.rs` (SQL-запросы и транзакции)
|
||||
- `events/` — Система Push-событий (Event-Driven Architecture).
|
||||
- `emitter.rs` (отправка событий `system-locked`, `vault-updated` во фронтенд).
|
||||
### 6.2. Frontend: Angular App (`/src/`)
|
||||
Используется современный подход с Angular Standalone-компонентами (без лишнего бойлерплейта в виде `NgModules`). Структура директорий базируется на Domain-Driven Design (DDD) для строгого соблюдения принципов ООП.
|
||||
- `main.ts` — Точка входа фреймворка Angular.
|
||||
- `app/` — Корневая директория логики UI.
|
||||
- `core/` — Базовая инфраструктура и Сервисы-синглтоны (существуют в единственном экземпляре).
|
||||
- `services/tauri-event-bus.service.ts` (RxJS-адаптер, слушающий события от Rust)
|
||||
- `services/crypto-strategy.service.ts` (паттерн Strategy для авторизации)
|
||||
- `services/vault.service.ts` (хранение расшифрованного стейта в оперативной памяти)
|
||||
- `models/` — Глобальные TypeScript-интерфейсы и ООП-классы Моделей.
|
||||
- `account.model.ts` (включая методы для валидации и приема паттерна Visitor)
|
||||
- `user.model.ts`
|
||||
- `shared/` — «Глупые» (Dumb/Presentational) компоненты и UI-кит. Они не содержат бизнес-логики, только принимают данные и отдают события кликов.
|
||||
- `components/account-card/` (карточка аккаунта)
|
||||
- `components/password-input/` (компонент поля ввода с индикатором надежности)
|
||||
- `features/` — «Умные» (Smart) компоненты, разделенные по бизнес-доменам приложения.
|
||||
- `auth/` (экраны ввода мастер-пароля и биометрии)
|
||||
- `main-window/` (весь интерфейс главного окна со списком паролей и настройками)
|
||||
- `spotlight/` (изолированное окно быстрого добавления/поиска, вызываемое горячими клавишами)
|
||||
- `styles/` — Глобальные стили, Tailwind конфигурации и CSS-переменные темы.
|
||||
- `assets/` — Статические файлы (локальные шрифты, иконки).
|
||||
164
docs/TASKS.md
Normal file
@@ -0,0 +1,164 @@
|
||||
# Project Tasks: Кроссплатформенный Менеджер Паролей
|
||||
|
||||
> [!NOTE]
|
||||
> Каждый тикет — одна атомарная единица работы: её можно взять, выполнить и смержить независимо от других.
|
||||
> Архитектурные решения описаны в [ARCHITECTURE.md](file:///Users/aleksandrebaklakov/Documents/Code/utils/abdristus/docs/ARCHITECTURE.md).
|
||||
|
||||
---
|
||||
|
||||
## `[INFRA]` — Инициализация и Инфраструктура
|
||||
|
||||
- [x] **INFRA-01** Создать Tauri-проект (`tauri init`) с базовой конфигурацией `tauri.conf.json`
|
||||
- [ ] **INFRA-02** Создать Angular-проект с флагом `--standalone` (без NgModules)
|
||||
- [ ] **INFRA-03** Настроить Rust-зависимости в `Cargo.toml`: `argon2`, `chacha20poly1305`, `sqlx`, `keyring`, `uuid`
|
||||
- [ ] **INFRA-04** Настроить npm-зависимости: `@tauri-apps/api`, `rxjs`, установить ESLint + строгий TypeScript
|
||||
- [ ] **INFRA-05** Настроить `tauri-plugin-global-shortcut` в `main.rs`
|
||||
- [ ] **INFRA-06** Настроить глобальные CSS-переменные и тему (цвета, типографику из `DESIGN.md`)
|
||||
|
||||
---
|
||||
|
||||
## `[CRYPTO]` — Криптография (Rust · `core/crypto.rs`)
|
||||
|
||||
- [ ] **CRYPTO-01** Реализовать генерацию случайной соли (`rand`) для Argon2id
|
||||
- [ ] **CRYPTO-02** Реализовать деривацию ключа DEK из Мастер-пароля через Argon2id (параметры: 2 прохода, ≥64 МБ)
|
||||
- [ ] **CRYPTO-03** Реализовать шифрование данных через XChaCha20-Poly1305 (возвращает `nonce` + `ciphertext`)
|
||||
- [ ] **CRYPTO-04** Реализовать дешифрование данных через XChaCha20-Poly1305 (принимает `nonce` + `ciphertext`)
|
||||
- [ ] **CRYPTO-05** Написать unit-тесты: шифрование → дешифрование возвращает исходные данные
|
||||
- [ ] **CRYPTO-06** Написать unit-тест: неверный nonce вызывает ошибку аутентификации
|
||||
|
||||
---
|
||||
|
||||
## `[PASSGEN]` — Генератор Паролей (Rust · `core/password_gen.rs`)
|
||||
|
||||
- [ ] **PASSGEN-01** Реализовать генерацию пароля заданной длины из набора символов (буквы, цифры)
|
||||
- [ ] **PASSGEN-02** Добавить поддержку флага включения специальных символов
|
||||
- [ ] **PASSGEN-03** Написать unit-тест: результат соответствует заданным параметрам (длина, набор символов)
|
||||
|
||||
---
|
||||
|
||||
## `[DB]` — База Данных (Rust · `database/`)
|
||||
|
||||
- [ ] **DB-01** Написать SQL-схему для таблицы `accounts` (`database/schema.sql`): поля `id`, `service_name`, `encrypted_data`, `nonce`, `updated_at`, `is_deleted`
|
||||
- [ ] **DB-02** Реализовать функцию создания/открытия изолированного файла БД `vault_<uuid>.sqlite` (`database/repository.rs`)
|
||||
- [ ] **DB-03** Определить Rust-структуры для маппинга таблиц БД (`database/models.rs`)
|
||||
- [ ] **DB-04** Реализовать `INSERT` — добавление новой зашифрованной записи (`repository.rs`)
|
||||
- [ ] **DB-05** Реализовать `SELECT` — получение всех записей по `vault_id` (с фильтром `is_deleted = false`)
|
||||
- [ ] **DB-06** Реализовать `UPDATE` — обновление записи и её поля `updated_at`
|
||||
- [ ] **DB-07** Реализовать `UPDATE` — Soft-delete записи (установка `is_deleted = true`)
|
||||
- [ ] **DB-08** Написать integration-тест для каждой операции репозитория (CRUD)
|
||||
|
||||
---
|
||||
|
||||
## `[AUTH]` — Аутентификация (Rust · `commands/auth.rs`)
|
||||
|
||||
- [ ] **AUTH-01** Реализовать IPC-команду `unlock_vault`: принимает Мастер-пароль, возвращает успех/ошибку
|
||||
- [ ] **AUTH-02** Реализовать сохранение DEK в системный Keyring после успешного ввода Мастер-пароля (macOS Keychain)
|
||||
- [ ] **AUTH-03** Реализовать сохранение DEK в системный Keyring (Windows Credential Manager)
|
||||
- [ ] **AUTH-04** Реализовать IPC-команду `unlock_vault_biometric`: вытащить DEK из Keyring через biometric prompt (macOS Touch ID)
|
||||
- [ ] **AUTH-05** Реализовать IPC-команду `unlock_vault_biometric`: вытащить DEK из Keyring через biometric prompt (Windows Hello)
|
||||
- [ ] **AUTH-06** Реализовать IPC-команду `lock_vault`: сбросить сессионный DEK из памяти
|
||||
- [ ] **AUTH-07** Написать integration-тест для команды `unlock_vault` с корректным и некорректным паролем
|
||||
|
||||
---
|
||||
|
||||
## `[VAULT]` — Управление Записями (Rust · `commands/vault.rs`)
|
||||
|
||||
- [ ] **VAULT-01** Реализовать IPC-команду `get_accounts`: расшифровать и вернуть все записи для текущей сессии
|
||||
- [ ] **VAULT-02** Реализовать IPC-команду `create_account`: принять данные от фронтенда, зашифровать через DEK, сохранить в БД
|
||||
- [ ] **VAULT-03** Реализовать IPC-команду `update_account`: обновить запись, выставить `updated_at`
|
||||
- [ ] **VAULT-04** Реализовать IPC-команду `delete_account`: выполнить soft-delete (`is_deleted = true`)
|
||||
- [ ] **VAULT-05** Написать integration-тест для каждой IPC-команды vault
|
||||
|
||||
---
|
||||
|
||||
## `[EVENTS]` — Push-события (Rust · `events/emitter.rs`)
|
||||
|
||||
- [ ] **EVENTS-01** Реализовать эмиттер события `vault-updated` (отправляется после create/update/delete)
|
||||
- [ ] **EVENTS-02** Реализовать эмиттер события `system-locked` (отправляется при блокировке ОС или по таймеру)
|
||||
|
||||
---
|
||||
|
||||
## `[FE-CORE]` — Frontend: Сервисы и Ядро (Angular · `app/core/`)
|
||||
|
||||
- [ ] **FE-CORE-01** Реализовать `TauriIpcService`: типизированная обертка над `window.__TAURI__.invoke`
|
||||
- [ ] **FE-CORE-02** Реализовать `TauriEventBusService`: RxJS-адаптер, слушающий события `vault-updated` и `system-locked`
|
||||
- [ ] **FE-CORE-03** Реализовать `VaultService`: `BehaviorSubject<Account[]>` для хранения сессионного стейта
|
||||
- [ ] **FE-CORE-04** В `VaultService`: реализовать метод `clear()` — сброс данных из памяти при блокировке
|
||||
- [ ] **FE-CORE-05** Реализовать `CryptoStrategyService`: интерфейс `AuthStrategy` с двумя реализациями — `MasterPasswordStrategy` и `BiometricStrategy`
|
||||
|
||||
---
|
||||
|
||||
## `[FE-MODELS]` — Frontend: Модели данных (Angular · `app/models/`)
|
||||
|
||||
- [ ] **FE-MODELS-01** Определить интерфейс `AccountDTO` (raw данные от Rust)
|
||||
- [ ] **FE-MODELS-02** Реализовать класс `Account` с геттерами, валидацией и методом `accept(visitor)` для паттерна Visitor
|
||||
- [ ] **FE-MODELS-03** Реализовать класс `User` с полями профиля
|
||||
- [ ] **FE-MODELS-04** Реализовать `CsvExportVisitor` — экспорт аккаунтов в CSV через паттерн Visitor
|
||||
|
||||
---
|
||||
|
||||
## `[FE-SHARED]` — Frontend: UI-кит (Angular · `app/shared/`)
|
||||
|
||||
- [ ] **FE-SHARED-01** Создать компонент `ButtonComponent` (primary / secondary / tertiary варианты из `DESIGN.md`)
|
||||
- [ ] **FE-SHARED-02** Создать компонент `PasswordInputComponent`: поле ввода + иконка показать/скрыть
|
||||
- [ ] **FE-SHARED-03** В `PasswordInputComponent`: добавить визуальный индикатор сложности пароля (weak / fair / strong)
|
||||
- [ ] **FE-SHARED-04** Создать компонент `AccountCardComponent`: отображение одной записи (сервис, логин, кнопки действий)
|
||||
- [ ] **FE-SHARED-05** Создать компонент `NotificationComponent`: toast-уведомления об ошибках и успехе
|
||||
|
||||
---
|
||||
|
||||
## `[FE-AUTH]` — Frontend: Экран Авторизации (Angular · `app/features/auth/`)
|
||||
|
||||
- [ ] **FE-AUTH-01** Создать экран ввода Мастер-пароля: форма с `PasswordInputComponent`, кнопка «Войти»
|
||||
- [ ] **FE-AUTH-02** Подключить экран к `CryptoStrategyService` (`MasterPasswordStrategy`)
|
||||
- [ ] **FE-AUTH-03** Создать экран Биометрии: кнопка «Войти по биометрии», fallback на Мастер-пароль
|
||||
- [ ] **FE-AUTH-04** Подключить экран биометрии к `CryptoStrategyService` (`BiometricStrategy`)
|
||||
- [ ] **FE-AUTH-05** Реализовать навигацию: успешная авторизация → главное окно; ошибка → сообщение об ошибке
|
||||
|
||||
---
|
||||
|
||||
## `[FE-MAIN]` — Frontend: Главное Окно (Angular · `app/features/main-window/`)
|
||||
|
||||
- [ ] **FE-MAIN-01** Создать layout главного окна: сайдбар + основной контент
|
||||
- [ ] **FE-MAIN-02** Реализовать список аккаунтов, подписанный на `VaultService` (реактивное обновление)
|
||||
- [ ] **FE-MAIN-03** Добавить строку поиска/фильтрации по названию сервиса
|
||||
- [ ] **FE-MAIN-04** Добавить фильтрацию по тегам
|
||||
- [ ] **FE-MAIN-05** Создать форму добавления записи: поля (сервис, логин, пароль, заметки, теги) + кнопка «Сгенерировать пароль»
|
||||
- [ ] **FE-MAIN-06** Подключить форму добавления к IPC-команде `create_account`
|
||||
- [ ] **FE-MAIN-07** Создать форму редактирования записи (переиспользует форму добавления, предзаполнена данными)
|
||||
- [ ] **FE-MAIN-08** Подключить форму редактирования к IPC-команде `update_account`
|
||||
- [ ] **FE-MAIN-09** Реализовать удаление записи с confirm-диалогом, использовать `delete_account`
|
||||
- [ ] **FE-MAIN-10** Создать экран Настроек: поле «таймер автоблокировки» (минуты), параметры генератора паролей
|
||||
|
||||
---
|
||||
|
||||
## `[FE-SPOTLIGHT]` — Frontend: Окно Spotlight (Angular · `app/features/spotlight/`)
|
||||
|
||||
- [ ] **FE-SPOTLIGHT-01** Создать изолированный компонент Spotlight-окна (отдельный `BrowserWindow` в Tauri)
|
||||
- [ ] **FE-SPOTLIGHT-02** Реализовать строку быстрого поиска по аккаунтам (live-filter из `VaultService`)
|
||||
- [ ] **FE-SPOTLIGHT-03** Реализовать быстрое добавление аккаунта прямо из Spotlight-окна
|
||||
- [ ] **FE-SPOTLIGHT-04** Реализовать закрытие Spotlight-окна при потере фокуса (blur event)
|
||||
|
||||
---
|
||||
|
||||
## `[SYSUX]` — Системные UX-функции (Rust + Angular)
|
||||
|
||||
- [ ] **SYSUX-01** Зарегистрировать глобальный шорткат (`Cmd/Ctrl+Shift+Space`) для открытия Spotlight (`main.rs`)
|
||||
- [ ] **SYSUX-02** Реализовать таймер бездействия на стороне Rust: по истечении отправлять событие `system-locked`
|
||||
- [ ] **SYSUX-03** Подписать Angular (`TauriEventBusService`) на событие `system-locked` → вызвать `VaultService.clear()` и перейти на экран авторизации
|
||||
- [ ] **SYSUX-04** Реализовать обработку события блокировки ОС (Rust) → отправлять `system-locked`
|
||||
|
||||
---
|
||||
|
||||
## `[TEST]` — Тестирование
|
||||
|
||||
- [ ] **TEST-01** Unit-тесты криптографии (покрыты в тикетах CRYPTO-05, CRYPTO-06)
|
||||
- [ ] **TEST-02** Unit-тесты генератора паролей (покрыт в PASSGEN-03)
|
||||
- [ ] **TEST-03** Integration-тесты репозитория БД (покрыты в DB-08)
|
||||
- [ ] **TEST-04** Integration-тесты IPC-команд auth (покрыты в AUTH-07)
|
||||
- [ ] **TEST-05** Integration-тесты IPC-команд vault (покрыты в VAULT-05)
|
||||
- [ ] **TEST-06** Unit-тесты Angular сервисов (`VaultService`, `TauriIpcService`, `CryptoStrategyService`)
|
||||
- [ ] **TEST-07** E2E: создание нового сейфа и первый вход (Мастер-пароль)
|
||||
- [ ] **TEST-08** E2E: добавление и поиск записи в главном окне
|
||||
- [ ] **TEST-09** E2E: автоблокировка по таймеру — данные очищаются из памяти
|
||||
- [ ] **TEST-10** E2E: открытие Spotlight по глобальному шорткату
|
||||
220
docs/spotlight-design/code.html
Normal file
@@ -0,0 +1,220 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html class="dark" lang="en"><head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||
<title>VAULT_SECURE - Spotlight</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet"/>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
|
||||
<script id="tailwind-config">
|
||||
tailwind.config = {
|
||||
darkMode: "class",
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
"secondary-fixed": "#ffdbcc",
|
||||
"on-primary": "#571f00",
|
||||
"on-error-container": "#ffdad6",
|
||||
"tertiary-fixed": "#cce5ff",
|
||||
"primary-container": "#c2571a",
|
||||
"outline-variant": "#574239",
|
||||
"on-tertiary-container": "#00050d",
|
||||
"on-tertiary": "#003351",
|
||||
"surface": "#131313",
|
||||
"surface-bright": "#3a3939",
|
||||
"surface-dim": "#131313",
|
||||
"on-tertiary-fixed-variant": "#004b73",
|
||||
"primary-fixed": "#ffdbcc",
|
||||
"on-error": "#690005",
|
||||
"inverse-on-surface": "#313030",
|
||||
"on-tertiary-fixed": "#001d31",
|
||||
"on-primary-fixed-variant": "#7b2f00",
|
||||
"inverse-surface": "#e5e2e1",
|
||||
"on-secondary-fixed": "#351000",
|
||||
"outline": "#a58b80",
|
||||
"on-secondary-fixed-variant": "#6b3a22",
|
||||
"tertiary-container": "#007dbd",
|
||||
"surface-container": "#201f1f",
|
||||
"secondary-fixed-dim": "#fdb696",
|
||||
"background": "#131313",
|
||||
"on-background": "#e5e2e1",
|
||||
"surface-variant": "#353534",
|
||||
"on-secondary-container": "#eaa586",
|
||||
"error-container": "#93000a",
|
||||
"on-surface-variant": "#dec0b4",
|
||||
"secondary-container": "#6b3a22",
|
||||
"on-surface": "#e5e2e1",
|
||||
"on-primary-container": "#0f0200",
|
||||
"surface-container-low": "#1c1b1b",
|
||||
"surface-container-lowest": "#0e0e0e",
|
||||
"tertiary-fixed-dim": "#93ccff",
|
||||
"on-primary-fixed": "#351000",
|
||||
"inverse-primary": "#a14000",
|
||||
"error": "#ffb4ab",
|
||||
"surface-container-high": "#2a2a2a",
|
||||
"secondary": "#fdb696",
|
||||
"surface-container-highest": "#353534",
|
||||
"primary-fixed-dim": "#ffb694",
|
||||
"on-secondary": "#4f240e",
|
||||
"primary": "#ffb694",
|
||||
"surface-tint": "#ffb694",
|
||||
"tertiary": "#93ccff"
|
||||
},
|
||||
fontFamily: {
|
||||
"headline": ["Inter"],
|
||||
"body": ["Inter"],
|
||||
"label": ["JetBrains Mono"],
|
||||
"mono": ["JetBrains Mono"]
|
||||
},
|
||||
borderRadius: {"DEFAULT": "0.125rem", "lg": "0.25rem", "xl": "0.5rem", "full": "0.75rem"},
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.material-symbols-outlined {
|
||||
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
||||
}
|
||||
.ghost-border {
|
||||
outline: 1px solid rgba(87, 66, 57, 0.15);
|
||||
}
|
||||
.glass-panel {
|
||||
background: rgba(58, 57, 57, 0.6);
|
||||
backdrop-filter: blur(20px);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body {
|
||||
min-height: max(884px, 100dvh);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-surface text-on-surface font-body selection:bg-primary-container selection:text-on-primary-container min-h-screen overflow-hidden">
|
||||
<!-- Background Layer (Simulating App Behind Spotlight) -->
|
||||
<div class="fixed inset-0 z-0 flex">
|
||||
<!-- NavigationDrawer -->
|
||||
<aside class="h-screen w-64 fixed left-0 top-0 bg-[#131313] flex flex-col py-6 px-4 opacity-20 pointer-events-none">
|
||||
<div class="mb-12">
|
||||
<span class="text-xl font-black tracking-tighter text-[#E5E2E1]">VAULT_SECURE</span>
|
||||
</div>
|
||||
<nav class="space-y-2">
|
||||
<div class="flex items-center gap-3 px-3 py-2 text-orange-500 font-bold border-r-2 border-orange-600 bg-orange-900/10">
|
||||
<span class="material-symbols-outlined">lock</span>
|
||||
<span class="font-['Inter'] font-medium text-sm tracking-tight">Vault</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-3 px-3 py-2 text-[#DEC0B4]/60">
|
||||
<span class="material-symbols-outlined">verified_user</span>
|
||||
<span class="font-['Inter'] font-medium text-sm tracking-tight">Security Shield</span>
|
||||
</div>
|
||||
</nav>
|
||||
</aside>
|
||||
<!-- Main Content Placeholder -->
|
||||
<main class="ml-64 w-full p-12 opacity-10 pointer-events-none">
|
||||
<div class="grid grid-cols-12 gap-6">
|
||||
<div class="col-span-8 bg-surface-container h-64 rounded-lg"></div>
|
||||
<div class="col-span-4 bg-surface-container h-64 rounded-lg"></div>
|
||||
<div class="col-span-12 bg-surface-container-low h-96 rounded-lg"></div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<!-- Spotlight Overlay Shell -->
|
||||
<div class="fixed inset-0 z-50 flex items-start justify-center pt-[132px] bg-[#0A0A0A]/40 backdrop-blur-md">
|
||||
<!-- Monolithic Spotlight Window -->
|
||||
<div class="w-full max-w-2xl bg-surface-container-lowest rounded-xl shadow-2xl overflow-hidden ghost-border animate-in fade-in zoom-in duration-300">
|
||||
<!-- Header/Search Bar -->
|
||||
<div class="flex items-center px-6 py-5 bg-surface-container-lowest border-b border-outline-variant/10">
|
||||
<span class="material-symbols-outlined text-on-surface-variant mr-4">search</span>
|
||||
<input autofocus="" class="w-full bg-transparent border-none focus:ring-0 text-xl font-headline placeholder:text-on-surface-variant/40 text-on-surface" placeholder="Start typing..." type="text"/>
|
||||
<div class="flex items-center gap-1.5 ml-4">
|
||||
<span class="px-1.5 py-0.5 rounded bg-surface-container-highest text-[10px] font-label text-on-surface-variant border border-outline-variant/20">ESC</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Suggestion List -->
|
||||
<div class="p-2">
|
||||
<div class="px-4 py-2">
|
||||
<h3 class="text-[10px] font-label uppercase tracking-widest text-on-surface-variant/50">Actions</h3>
|
||||
</div>
|
||||
<div class="space-y-0.5">
|
||||
<!-- Action: Add account -->
|
||||
<div class="flex items-center justify-between px-4 py-3 bg-primary-container/10 group cursor-pointer border-l-2 border-primary-container">
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="w-8 h-8 flex items-center justify-center bg-primary-container text-on-primary-container rounded-sm">
|
||||
<span class="material-symbols-outlined text-[20px]" data-weight="fill" style="font-variation-settings: 'FILL' 1;">person_add</span>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-sm font-semibold text-on-surface">Add account</p>
|
||||
<p class="text-xs font-label text-on-surface-variant/60">Initialize a new profile within the system</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-[10px] font-label text-primary opacity-0 group-hover:opacity-100 transition-opacity">Press Enter</span>
|
||||
<span class="material-symbols-outlined text-sm text-primary">keyboard_return</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Action: Access Vault Data -->
|
||||
<div class="flex items-center justify-between px-4 py-3 hover:bg-surface-container-highest/50 group cursor-pointer transition-colors duration-150 border-l-2 border-transparent">
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="w-8 h-8 flex items-center justify-center bg-surface-container-highest text-on-surface-variant rounded-sm">
|
||||
<span class="material-symbols-outlined text-[20px]">database</span>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-sm font-semibold text-on-surface">Access Vault Data</p>
|
||||
<p class="text-xs font-label text-on-surface-variant/60">Query the encrypted storage nodes</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
<span class="material-symbols-outlined text-sm text-on-surface-variant">chevron_right</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Action: Recovery Code -->
|
||||
<div class="flex items-center justify-between px-4 py-3 hover:bg-surface-container-highest/50 group cursor-pointer transition-colors duration-150 border-l-2 border-transparent">
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="w-8 h-8 flex items-center justify-center bg-surface-container-highest text-on-surface-variant rounded-sm">
|
||||
<span class="material-symbols-outlined text-[20px]">shield_moon</span>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-sm font-semibold text-on-surface">Recovery Code</p>
|
||||
<p class="text-xs font-label text-on-surface-variant/60">Backup phrase or 2FA seed</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
<span class="material-symbols-outlined text-sm text-on-surface-variant">chevron_right</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Section: Advanced -->
|
||||
<div class="px-4 py-2 mt-2">
|
||||
<h3 class="text-[10px] font-label uppercase tracking-widest text-on-surface-variant/50">Search Engine</h3>
|
||||
</div>
|
||||
<div class="px-2 pb-2">
|
||||
<div class="flex items-center gap-3 px-4 py-3 hover:bg-surface-container-highest/30 rounded cursor-pointer transition-all duration-200">
|
||||
<span class="material-symbols-outlined text-on-surface-variant/40">history</span>
|
||||
<span class="text-sm text-on-surface-variant">Search in activity log...</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Footer Meta -->
|
||||
<div class="px-6 py-3 bg-surface-container border-t border-outline-variant/10 flex items-center justify-between">
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="flex items-center gap-1.5">
|
||||
<span class="material-symbols-outlined text-xs text-on-surface-variant">keyboard_arrow_up</span>
|
||||
<span class="material-symbols-outlined text-xs text-on-surface-variant">keyboard_arrow_down</span>
|
||||
<span class="text-[10px] font-label text-on-surface-variant">Navigate</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-1.5">
|
||||
<span class="material-symbols-outlined text-xs text-on-surface-variant">keyboard_return</span>
|
||||
<span class="text-[10px] font-label text-on-surface-variant">Select</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-primary animate-pulse"></span>
|
||||
<span class="text-[10px] font-label text-on-surface-variant">SECURE_TUNNEL_ACTIVE</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Visual Polish: Grain Overlay -->
|
||||
<div class="fixed inset-0 pointer-events-none opacity-[0.03] z-[100]" data-alt="Subtle noise texture for cinematic UI finish" style="background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuAbfbfnVqdPzvsgoJIgZ55zFdozHNw52My4wLiSZfshpua5KaAtfDNsNyVJUd2OqMPubD3XTXnd4QKMGHL0shcM099MqtqUd4TVLoC_cKEr6_alJ1OHvwtHTtQGfzBB53yIH_uBiuGOT95b9VYp7NtpnV1yPiPOCxbEk9r2fmoToy-uTsYLPbwlB0wPkCTkha9Abfl3bsYRgQub7h2nHqBzb2mz5FUm1VDe7xAb7eG2nswCmh3l7HG8nVAdde72qPeGTZcMiq2YyKH8');">
|
||||
</div>
|
||||
</body></html>
|
||||
BIN
docs/spotlight-design/screen.png
Normal file
|
After Width: | Height: | Size: 253 KiB |
291
docs/vault-design/code.html
Normal file
@@ -0,0 +1,291 @@
|
||||
<!DOCTYPE html><html class="dark" lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<title>VAULT_SECURE | Password Management</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
.font-mono { font-family: 'JetBrains Mono', monospace; }
|
||||
.font-sans { font-family: 'Inter', sans-serif; }
|
||||
.material-symbols-outlined {
|
||||
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
||||
}
|
||||
/* Custom scrollbar for the monolithic look */
|
||||
::-webkit-scrollbar { width: 4px; }
|
||||
::-webkit-scrollbar-track { background: #0E0E0E; }
|
||||
::-webkit-scrollbar-thumb { background: #353534; }
|
||||
</style>
|
||||
<script id="tailwind-config">
|
||||
tailwind.config = {
|
||||
darkMode: "class",
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
"secondary-fixed": "#ffdbcc",
|
||||
"on-primary": "#571f00",
|
||||
"on-error-container": "#ffdad6",
|
||||
"tertiary-fixed": "#cce5ff",
|
||||
"primary-container": "#c2571a",
|
||||
"outline-variant": "#574239",
|
||||
"on-tertiary-container": "#00050d",
|
||||
"on-tertiary": "#003351",
|
||||
"surface": "#131313",
|
||||
"surface-bright": "#3a3939",
|
||||
"surface-dim": "#131313",
|
||||
"on-tertiary-fixed-variant": "#004b73",
|
||||
"primary-fixed": "#ffdbcc",
|
||||
"on-error": "#690005",
|
||||
"inverse-on-surface": "#313030",
|
||||
"on-tertiary-fixed": "#001d31",
|
||||
"on-primary-fixed-variant": "#7b2f00",
|
||||
"inverse-surface": "#e5e2e1",
|
||||
"on-secondary-fixed": "#351000",
|
||||
"outline": "#a58b80",
|
||||
"on-secondary-fixed-variant": "#6b3a22",
|
||||
"tertiary-container": "#007dbd",
|
||||
"surface-container": "#201f1f",
|
||||
"secondary-fixed-dim": "#fdb696",
|
||||
"background": "#131313",
|
||||
"on-background": "#e5e2e1",
|
||||
"surface-variant": "#353534",
|
||||
"on-secondary-container": "#eaa586",
|
||||
"error-container": "#93000a",
|
||||
"on-surface-variant": "#dec0b4",
|
||||
"secondary-container": "#6b3a22",
|
||||
"on-surface": "#e5e2e1",
|
||||
"on-primary-container": "#0f0200",
|
||||
"surface-container-low": "#1c1b1b",
|
||||
"surface-container-lowest": "#0e0e0e",
|
||||
"tertiary-fixed-dim": "#93ccff",
|
||||
"on-primary-fixed": "#351000",
|
||||
"inverse-primary": "#a14000",
|
||||
"error": "#ffb4ab",
|
||||
"surface-container-high": "#2a2a2a",
|
||||
"secondary": "#fdb696",
|
||||
"surface-container-highest": "#353534",
|
||||
"primary-fixed-dim": "#ffb694",
|
||||
"on-secondary": "#4f240e",
|
||||
"primary": "#ffb694",
|
||||
"surface-tint": "#ffb694",
|
||||
"tertiary": "#93ccff"
|
||||
},
|
||||
fontFamily: {
|
||||
"headline": ["Inter"],
|
||||
"body": ["Inter"],
|
||||
"label": ["Inter"]
|
||||
},
|
||||
borderRadius: {"DEFAULT": "0.125rem", "lg": "0.25rem", "xl": "0.5rem", "full": "0.75rem"},
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
min-height: 100dvh;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-surface text-on-surface font-sans selection:bg-primary-container selection:text-on-primary-container">
|
||||
<!-- Main Content Canvas -->
|
||||
<main class="min-h-screen flex flex-col relative">
|
||||
<!-- TopAppBar -->
|
||||
<header class="fixed top-0 left-0 right-0 z-40 bg-[#131313]/80 backdrop-blur-xl flex items-center justify-between px-8 h-16 border-b border-[#574239]/10">
|
||||
<div class="flex items-center gap-6">
|
||||
<span class="text-xl font-black tracking-tighter text-[#E5E2E1]" style="">VAULT_SECURE</span>
|
||||
<div class="h-6 w-px bg-outline-variant/20 mx-2"></div>
|
||||
<div class="flex items-center gap-4 text-orange-600">
|
||||
<span class="material-symbols-outlined" data-icon="search" style="">search</span>
|
||||
<span class="font-['Inter'] font-semibold text-sm text-[#DEC0B4]" style="">Search Vault (⌘K)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-6">
|
||||
<div class="hidden md:flex items-center gap-2 px-3 py-1 rounded bg-surface-container-highest border border-outline-variant/10">
|
||||
<span class="text-[10px] font-mono text-primary uppercase tracking-widest" style="">Master Key Status:</span>
|
||||
<span class="text-[10px] font-mono text-green-500 uppercase" style="">Verified</span>
|
||||
</div>
|
||||
<button class="text-[#DEC0B4] hover:bg-[#353534]/30 p-2 rounded transition-colors" style="">
|
||||
<span class="material-symbols-outlined" data-icon="account_circle" style="">account_circle</span>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
<!-- Notification Toast -->
|
||||
<div class="fixed top-20 left-1/2 -translate-x-1/2 z-50 flex animate-in fade-in slide-in-from-top-4 duration-300">
|
||||
<div class="bg-surface-container border border-primary-container/50 px-6 py-3 rounded-lg flex items-center gap-4 shadow-2xl">
|
||||
<span class="material-symbols-outlined text-primary text-sm" data-icon="check_circle" style="">check_circle</span>
|
||||
<span class="text-sm font-medium" style="">Password Copied</span>
|
||||
<div class="h-4 w-px bg-outline-variant/30"></div>
|
||||
<span class="text-[10px] font-mono text-on-surface-variant" style="">0.4ms</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Scrollable Content Area -->
|
||||
<div class="mt-16 p-4 md:p-10 flex-1 max-w-7xl mx-auto w-full">
|
||||
<!-- Action Header -->
|
||||
<div class="flex justify-between items-center mb-8">
|
||||
<div class="flex gap-4">
|
||||
<button class="text-xs font-mono uppercase tracking-widest text-primary border-b-2 border-primary pb-1" style="">All Items</button>
|
||||
<button class="text-xs font-mono uppercase tracking-widest text-on-surface-variant/60 hover:text-on-surface transition-colors pb-1" style="">Favorites</button>
|
||||
</div>
|
||||
<button class="bg-primary-container text-on-primary-container px-6 py-2 text-sm font-bold flex items-center gap-2 hover:opacity-90 transition-opacity" style="">
|
||||
<span class="material-symbols-outlined text-sm" data-icon="add" style="">add</span>
|
||||
NEW ENTITY
|
||||
</button>
|
||||
</div>
|
||||
<!-- Monolithic Data Grid -->
|
||||
<div class="bg-surface-container-lowest rounded-lg border border-outline-variant/10 overflow-hidden shadow-2xl">
|
||||
<!-- Grid Headers -->
|
||||
<div class="hidden md:grid grid-cols-12 gap-4 px-8 py-4 bg-surface-container-highest/40 border-b border-outline-variant/10">
|
||||
<div class="col-span-3 text-[10px] font-mono text-on-surface-variant uppercase tracking-widest" style="">Site / Application</div>
|
||||
<div class="col-span-2 text-[10px] font-mono text-on-surface-variant uppercase tracking-widest" style="">Login</div>
|
||||
<div class="col-span-2 text-[10px] font-mono text-on-surface-variant uppercase tracking-widest" style="">Email Address</div>
|
||||
<div class="col-span-3 text-[10px] font-mono text-on-surface-variant uppercase tracking-widest" style="">Security String</div>
|
||||
<div class="col-span-1 text-[10px] font-mono text-on-surface-variant uppercase tracking-widest" style="">Tags</div>
|
||||
<div class="col-span-1 text-right"></div>
|
||||
</div>
|
||||
<!-- Password Rows -->
|
||||
<div class="divide-y divide-outline-variant/5">
|
||||
<!-- Row 1 -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-4 px-8 py-6 items-center hover:bg-surface-bright/5 transition-colors group cursor-pointer border-l-2 border-transparent hover:border-primary">
|
||||
<div class="col-span-1 md:col-span-3 flex items-center gap-4">
|
||||
<div class="w-10 h-10 bg-surface-container-high flex items-center justify-center rounded-sm shrink-0">
|
||||
<span class="material-symbols-outlined text-primary" data-icon="play_circle" style="font-variation-settings: "FILL" 1;">play_circle</span>
|
||||
</div>
|
||||
<div class="flex flex-col overflow-hidden">
|
||||
<span class="text-sm font-bold truncate" style="">Disney Plus</span>
|
||||
<span class="text-[10px] text-on-surface-variant font-mono truncate" style="">disney.com</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-2">
|
||||
<span class="text-xs font-medium truncate block" style="">disney_premium_admin</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-2">
|
||||
<span class="text-[10px] text-on-surface-variant font-mono truncate block" style="">admin@disney.corp</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-3">
|
||||
<span class="font-mono text-on-surface-variant tracking-[0.2em] text-lg select-none" style="">••••••••••••••••</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-1 flex gap-1 flex-wrap">
|
||||
<span class="px-2 py-0.5 bg-surface-variant text-[9px] font-mono text-on-surface-variant border border-outline-variant/20" style="">ENT.</span>
|
||||
</div>
|
||||
<div class="col-span-1 flex justify-end gap-2 md:opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
<button class="text-on-surface-variant hover:text-primary transition-colors p-1" style="">
|
||||
<span class="material-symbols-outlined text-lg" data-icon="content_copy" style="">content_copy</span>
|
||||
</button>
|
||||
<button class="text-on-surface-variant hover:text-on-surface transition-colors p-1" style="">
|
||||
<span class="material-symbols-outlined text-lg" data-icon="more_vert" style="">more_vert</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Row 2 -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-4 px-8 py-6 items-center hover:bg-surface-bright/5 transition-colors group cursor-pointer border-l-2 border-transparent hover:border-primary">
|
||||
<div class="col-span-1 md:col-span-3 flex items-center gap-4">
|
||||
<div class="w-10 h-10 bg-surface-container-high flex items-center justify-center rounded-sm shrink-0">
|
||||
<span class="material-symbols-outlined text-[#DEC0B4]" data-icon="shield" style="">shield</span>
|
||||
</div>
|
||||
<div class="flex flex-col overflow-hidden">
|
||||
<span class="text-sm font-bold truncate" style="">AWS Console</span>
|
||||
<span class="text-[10px] text-on-surface-variant font-mono truncate" style="">console.aws.amazon.com</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-2">
|
||||
<span class="text-xs font-medium truncate block" style="">iam_root_security</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-2">
|
||||
<span class="text-[10px] text-on-surface-variant font-mono truncate block" style="">root@sys.internal</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-3">
|
||||
<span class="font-mono text-on-surface-variant tracking-[0.2em] text-lg select-none opacity-50" style="">••••••••••••••••</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-1 flex gap-1 flex-wrap">
|
||||
<span class="px-2 py-0.5 bg-surface-variant text-[9px] font-mono text-on-surface-variant border border-outline-variant/20" style="">INFRA</span>
|
||||
</div>
|
||||
<div class="col-span-1 flex justify-end gap-2 md:opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
<button class="text-on-surface-variant hover:text-primary transition-colors p-1" style="">
|
||||
<span class="material-symbols-outlined text-lg" data-icon="content_copy" style="">content_copy</span>
|
||||
</button>
|
||||
<button class="text-on-surface-variant hover:text-on-surface transition-colors p-1" style="">
|
||||
<span class="material-symbols-outlined text-lg" data-icon="more_vert" style="">more_vert</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Row 3 -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-4 px-8 py-6 items-center hover:bg-surface-bright/5 transition-colors group cursor-pointer border-l-2 border-transparent hover:border-primary">
|
||||
<div class="col-span-1 md:col-span-3 flex items-center gap-4">
|
||||
<div class="w-10 h-10 bg-surface-container-high flex items-center justify-center rounded-sm shrink-0">
|
||||
<span class="material-symbols-outlined text-[#DEC0B4]" data-icon="terminal" style="">terminal</span>
|
||||
</div>
|
||||
<div class="flex flex-col overflow-hidden">
|
||||
<span class="text-sm font-bold truncate" style="">GitHub Enterprise</span>
|
||||
<span class="text-[10px] text-on-surface-variant font-mono truncate" style="">github.com</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-2">
|
||||
<span class="text-xs font-medium truncate block" style="">dev_ops_internal</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-2">
|
||||
<span class="text-[10px] text-on-surface-variant font-mono truncate block" style="">dev@github.com</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-3">
|
||||
<span class="font-mono text-on-surface-variant tracking-[0.2em] text-lg select-none opacity-50" style="">••••••••••••••••</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-1 flex gap-1 flex-wrap">
|
||||
<span class="px-2 py-0.5 bg-surface-variant text-[9px] font-mono text-on-surface-variant border border-outline-variant/20" style="">DEV</span>
|
||||
</div>
|
||||
<div class="col-span-1 flex justify-end gap-2 md:opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
<button class="text-on-surface-variant hover:text-primary transition-colors p-1" style="">
|
||||
<span class="material-symbols-outlined text-lg" data-icon="content_copy" style="">content_copy</span>
|
||||
</button>
|
||||
<button class="text-on-surface-variant hover:text-on-surface transition-colors p-1" style="">
|
||||
<span class="material-symbols-outlined text-lg" data-icon="more_vert" style="">more_vert</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Row 4 -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-12 gap-4 px-8 py-6 items-center hover:bg-surface-bright/5 transition-colors group cursor-pointer border-l-2 border-transparent hover:border-primary">
|
||||
<div class="col-span-1 md:col-span-3 flex items-center gap-4">
|
||||
<div class="w-10 h-10 bg-surface-container-high flex items-center justify-center rounded-sm shrink-0">
|
||||
<span class="material-symbols-outlined text-[#DEC0B4]" data-icon="token" style="">token</span>
|
||||
</div>
|
||||
<div class="flex flex-col overflow-hidden">
|
||||
<span class="text-sm font-bold truncate" style="">Stripe Merchant</span>
|
||||
<span class="text-[10px] text-on-surface-variant font-mono truncate" style="">dashboard.stripe.com</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-2">
|
||||
<span class="text-xs font-medium truncate block" style="">finance_primary_vault</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-2">
|
||||
<span class="text-[10px] text-on-surface-variant font-mono truncate block" style="">billing@stripe.com</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-3">
|
||||
<span class="font-mono text-on-surface-variant tracking-[0.2em] text-lg select-none opacity-50" style="">••••••••••••••••</span>
|
||||
</div>
|
||||
<div class="col-span-1 md:col-span-1 flex gap-1 flex-wrap">
|
||||
<span class="px-2 py-0.5 bg-surface-variant text-[9px] font-mono text-on-surface-variant border border-outline-variant/20" style="">FIN</span>
|
||||
</div>
|
||||
<div class="col-span-1 flex justify-end gap-2 md:opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
<button class="text-on-surface-variant hover:text-primary transition-colors p-1" style="">
|
||||
<span class="material-symbols-outlined text-lg" data-icon="content_copy" style="">content_copy</span>
|
||||
</button>
|
||||
<button class="text-on-surface-variant hover:text-on-surface transition-colors p-1" style="">
|
||||
<span class="material-symbols-outlined text-lg" data-icon="more_vert" style="">more_vert</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Footer Visual Decoration -->
|
||||
<footer class="mt-auto px-10 py-6 flex justify-between items-center border-t border-outline-variant/5 bg-surface-container-lowest/50">
|
||||
<div class="flex gap-8">
|
||||
<div class="flex flex-col">
|
||||
<span class="text-[8px] font-mono text-on-surface-variant uppercase" style="">End-to-End Encryption</span>
|
||||
<span class="text-[10px] font-mono text-green-500" style="">AES-256-GCM ACTIVE</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-[10px] font-mono text-on-surface-variant/40" style="">
|
||||
© 2024 VAULT_SECURE / VER_4.1.0_MINIMAL
|
||||
</div>
|
||||
</footer>
|
||||
</main>
|
||||
</body></html>
|
||||
BIN
docs/vault-design/screen.png
Normal file
|
After Width: | Height: | Size: 107 KiB |
8798
package-lock.json
generated
Normal file
33
package.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "abdristus",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test"
|
||||
},
|
||||
"private": true,
|
||||
"packageManager": "npm@11.6.2",
|
||||
"dependencies": {
|
||||
"@angular/common": "^21.2.0",
|
||||
"@angular/compiler": "^21.2.0",
|
||||
"@angular/core": "^21.2.0",
|
||||
"@angular/forms": "^21.2.0",
|
||||
"@angular/platform-browser": "^21.2.0",
|
||||
"@angular/router": "^21.2.0",
|
||||
"rxjs": "~7.8.0",
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/build": "^21.2.3",
|
||||
"@angular/cli": "^21.2.3",
|
||||
"@angular/compiler-cli": "^21.2.0",
|
||||
"@tauri-apps/cli": "^2.10.1",
|
||||
"jsdom": "^28.0.0",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "~5.9.2",
|
||||
"vitest": "^4.0.8"
|
||||
}
|
||||
}
|
||||
BIN
public/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
4
src-tauri/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Generated by Cargo
|
||||
# will have compiled files and executables
|
||||
/target/
|
||||
/gen/schemas
|
||||
5259
src-tauri/Cargo.lock
generated
Normal file
25
src-tauri/Cargo.toml
Normal file
@@ -0,0 +1,25 @@
|
||||
[package]
|
||||
name = "abdristus"
|
||||
version = "0.1.0"
|
||||
description = "Cross-platform password manager built with Tauri and Angular"
|
||||
authors = ["you"]
|
||||
license = "MIT"
|
||||
repository = ""
|
||||
edition = "2021"
|
||||
rust-version = "1.77.2"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[lib]
|
||||
name = "app_lib"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2.5.6" }
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
log = "0.4"
|
||||
tauri = { version = "2.10.3" }
|
||||
tauri-plugin-log = "2"
|
||||
3
src-tauri/build.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
tauri_build::build()
|
||||
}
|
||||
11
src-tauri/capabilities/default.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "default",
|
||||
"description": "enables the default permissions",
|
||||
"windows": [
|
||||
"main"
|
||||
],
|
||||
"permissions": [
|
||||
"core:default"
|
||||
]
|
||||
}
|
||||
BIN
src-tauri/icons/128x128.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src-tauri/icons/128x128@2x.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
src-tauri/icons/32x32.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
src-tauri/icons/Square107x107Logo.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
src-tauri/icons/Square142x142Logo.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src-tauri/icons/Square150x150Logo.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src-tauri/icons/Square284x284Logo.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
src-tauri/icons/Square30x30Logo.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src-tauri/icons/Square310x310Logo.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
src-tauri/icons/Square44x44Logo.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
src-tauri/icons/Square71x71Logo.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
src-tauri/icons/Square89x89Logo.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
src-tauri/icons/StoreLogo.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
src-tauri/icons/icon.icns
Normal file
BIN
src-tauri/icons/icon.ico
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
src-tauri/icons/icon.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
2
src-tauri/src/commands/auth.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Authentication IPC command handlers
|
||||
// Implements: unlock_vault, unlock_vault_biometric, lock_vault
|
||||
2
src-tauri/src/commands/mod.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
pub mod auth;
|
||||
pub mod vault;
|
||||
2
src-tauri/src/commands/vault.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Vault management IPC command handlers
|
||||
// Implements: get_accounts, create_account, update_account, delete_account
|
||||
2
src-tauri/src/core/crypto.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Cryptographic operations
|
||||
// Implements: Argon2id key derivation, XChaCha20-Poly1305 encrypt/decrypt
|
||||
2
src-tauri/src/core/mod.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
pub mod crypto;
|
||||
pub mod password_gen;
|
||||
2
src-tauri/src/core/password_gen.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Password generator
|
||||
// Implements: configurable password generation (length, charset, special symbols)
|
||||
2
src-tauri/src/database/mod.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
pub mod models;
|
||||
pub mod repository;
|
||||
2
src-tauri/src/database/models.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Database models
|
||||
// Rust structs for mapping SQLite tables (Account, etc.)
|
||||
2
src-tauri/src/database/repository.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Database repository
|
||||
// SQL queries, transactions, CRUD operations for vault_<uuid>.sqlite
|
||||
2
src-tauri/src/database/schema.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Database schema for Abdristus Password Manager
|
||||
-- Table definitions and migrations will be added in DB-01
|
||||
2
src-tauri/src/events/emitter.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Event emitter
|
||||
// Push events to frontend: vault-updated, system-locked
|
||||
1
src-tauri/src/events/mod.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod emitter;
|
||||
21
src-tauri/src/lib.rs
Normal file
@@ -0,0 +1,21 @@
|
||||
mod commands;
|
||||
mod core;
|
||||
mod database;
|
||||
mod events;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.setup(|app| {
|
||||
if cfg!(debug_assertions) {
|
||||
app.handle().plugin(
|
||||
tauri_plugin_log::Builder::default()
|
||||
.level(log::LevelFilter::Info)
|
||||
.build(),
|
||||
)?;
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
6
src-tauri/src/main.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
app_lib::run();
|
||||
}
|
||||
40
src-tauri/tauri.conf.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||
"productName": "Abdristus",
|
||||
"version": "0.1.0",
|
||||
"identifier": "com.abdristus.app",
|
||||
"build": {
|
||||
"frontendDist": "../dist/abdristus/browser",
|
||||
"devUrl": "http://localhost:4200",
|
||||
"beforeDevCommand": "npm run start",
|
||||
"beforeBuildCommand": "npm run build"
|
||||
},
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"label": "main",
|
||||
"title": "Abdristus — Password Manager",
|
||||
"width": 1100,
|
||||
"height": 720,
|
||||
"minWidth": 800,
|
||||
"minHeight": 600,
|
||||
"resizable": true,
|
||||
"center": true
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
"csp": "default-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' asset: https://asset.localhost"
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"targets": "all",
|
||||
"icon": [
|
||||
"icons/32x32.png",
|
||||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
]
|
||||
}
|
||||
}
|
||||
11
src/app/app.config.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
|
||||
import { routes } from './app.routes';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
provideBrowserGlobalErrorListeners(),
|
||||
provideRouter(routes)
|
||||
]
|
||||
};
|
||||
0
src/app/app.css
Normal file
344
src/app/app.html
Normal file
@@ -0,0 +1,344 @@
|
||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * Delete the template below * * * * * * * * * -->
|
||||
<!-- * * * * * * * to get started with your project! * * * * * * * -->
|
||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
||||
|
||||
<style>
|
||||
:host {
|
||||
--bright-blue: oklch(51.01% 0.274 263.83);
|
||||
--electric-violet: oklch(53.18% 0.28 296.97);
|
||||
--french-violet: oklch(47.66% 0.246 305.88);
|
||||
--vivid-pink: oklch(69.02% 0.277 332.77);
|
||||
--hot-red: oklch(61.42% 0.238 15.34);
|
||||
--orange-red: oklch(63.32% 0.24 31.68);
|
||||
|
||||
--gray-900: oklch(19.37% 0.006 300.98);
|
||||
--gray-700: oklch(36.98% 0.014 302.71);
|
||||
--gray-400: oklch(70.9% 0.015 304.04);
|
||||
|
||||
--red-to-pink-to-purple-vertical-gradient: linear-gradient(
|
||||
180deg,
|
||||
var(--orange-red) 0%,
|
||||
var(--vivid-pink) 50%,
|
||||
var(--electric-violet) 100%
|
||||
);
|
||||
|
||||
--red-to-pink-to-purple-horizontal-gradient: linear-gradient(
|
||||
90deg,
|
||||
var(--orange-red) 0%,
|
||||
var(--vivid-pink) 50%,
|
||||
var(--electric-violet) 100%
|
||||
);
|
||||
|
||||
--pill-accent: var(--bright-blue);
|
||||
|
||||
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
||||
"Segoe UI Symbol";
|
||||
box-sizing: border-box;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
display: block;
|
||||
height: 100dvh;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.125rem;
|
||||
color: var(--gray-900);
|
||||
font-weight: 500;
|
||||
line-height: 100%;
|
||||
letter-spacing: -0.125rem;
|
||||
margin: 0;
|
||||
font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
||||
"Segoe UI Symbol";
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
color: var(--gray-700);
|
||||
}
|
||||
|
||||
main {
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
box-sizing: inherit;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.angular-logo {
|
||||
max-width: 9.2rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
width: 100%;
|
||||
max-width: 700px;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.content h1 {
|
||||
margin-top: 1.75rem;
|
||||
}
|
||||
|
||||
.content p {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 1px;
|
||||
background: var(--red-to-pink-to-purple-vertical-gradient);
|
||||
margin-inline: 0.5rem;
|
||||
}
|
||||
|
||||
.pill-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: start;
|
||||
flex-wrap: wrap;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.pill {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
--pill-accent: var(--bright-blue);
|
||||
background: color-mix(in srgb, var(--pill-accent) 5%, transparent);
|
||||
color: var(--pill-accent);
|
||||
padding-inline: 0.75rem;
|
||||
padding-block: 0.375rem;
|
||||
border-radius: 2.75rem;
|
||||
border: 0;
|
||||
transition: background 0.3s ease;
|
||||
font-family: var(--inter-font);
|
||||
font-size: 0.875rem;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
line-height: 1.4rem;
|
||||
letter-spacing: -0.00875rem;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pill:hover {
|
||||
background: color-mix(in srgb, var(--pill-accent) 15%, transparent);
|
||||
}
|
||||
|
||||
.pill-group .pill:nth-child(6n + 1) {
|
||||
--pill-accent: var(--bright-blue);
|
||||
}
|
||||
.pill-group .pill:nth-child(6n + 2) {
|
||||
--pill-accent: var(--electric-violet);
|
||||
}
|
||||
.pill-group .pill:nth-child(6n + 3) {
|
||||
--pill-accent: var(--french-violet);
|
||||
}
|
||||
|
||||
.pill-group .pill:nth-child(6n + 4),
|
||||
.pill-group .pill:nth-child(6n + 5),
|
||||
.pill-group .pill:nth-child(6n + 6) {
|
||||
--pill-accent: var(--hot-red);
|
||||
}
|
||||
|
||||
.pill-group svg {
|
||||
margin-inline-start: 0.25rem;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.73rem;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.social-links path {
|
||||
transition: fill 0.3s ease;
|
||||
fill: var(--gray-400);
|
||||
}
|
||||
|
||||
.social-links a:hover svg path {
|
||||
fill: var(--gray-900);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 650px) {
|
||||
.content {
|
||||
flex-direction: column;
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.divider {
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
background: var(--red-to-pink-to-purple-horizontal-gradient);
|
||||
margin-block: 1.5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<main class="main">
|
||||
<div class="content">
|
||||
<div class="left-side">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 982 239"
|
||||
fill="none"
|
||||
class="angular-logo"
|
||||
>
|
||||
<g clip-path="url(#a)">
|
||||
<path
|
||||
fill="url(#b)"
|
||||
d="M388.676 191.625h30.849L363.31 31.828h-35.758l-56.215 159.797h30.848l13.174-39.356h60.061l13.256 39.356Zm-65.461-62.675 21.602-64.311h1.227l21.602 64.311h-44.431Zm126.831-7.527v70.202h-28.23V71.839h27.002v20.374h1.392c2.782-6.71 7.2-12.028 13.255-15.956 6.056-3.927 13.584-5.89 22.503-5.89 8.264 0 15.465 1.8 21.684 5.318 6.137 3.518 10.964 8.673 14.319 15.382 3.437 6.71 5.074 14.81 4.992 24.383v76.175h-28.23v-71.92c0-8.019-2.046-14.237-6.219-18.819-4.173-4.5-9.819-6.791-17.102-6.791-4.91 0-9.328 1.063-13.174 3.272-3.846 2.128-6.792 5.237-9.001 9.328-2.046 4.009-3.191 8.918-3.191 14.728ZM589.233 239c-10.147 0-18.82-1.391-26.103-4.091-7.282-2.7-13.092-6.382-17.511-10.964-4.418-4.582-7.528-9.655-9.164-15.219l25.448-6.136c1.145 2.372 2.782 4.663 4.991 6.954 2.209 2.291 5.155 4.255 8.837 5.81 3.683 1.554 8.428 2.291 14.074 2.291 8.019 0 14.647-1.964 19.884-5.81 5.237-3.845 7.856-10.227 7.856-19.064v-22.665h-1.391c-1.473 2.946-3.601 5.892-6.383 9.001-2.782 3.109-6.464 5.645-10.965 7.691-4.582 2.046-10.228 3.109-17.101 3.109-9.165 0-17.511-2.209-25.039-6.545-7.446-4.337-13.42-10.883-17.757-19.474-4.418-8.673-6.628-19.473-6.628-32.565 0-13.091 2.21-24.301 6.628-33.383 4.419-9.082 10.311-15.955 17.839-20.7 7.528-4.746 15.874-7.037 25.039-7.037 7.037 0 12.846 1.145 17.347 3.518 4.582 2.373 8.182 5.236 10.883 8.51 2.7 3.272 4.746 6.382 6.137 9.327h1.554v-19.8h27.821v121.749c0 10.228-2.454 18.737-7.364 25.447-4.91 6.709-11.538 11.7-20.048 15.055-8.509 3.355-18.165 4.991-28.884 4.991Zm.245-71.266c5.974 0 11.047-1.473 15.302-4.337 4.173-2.945 7.446-7.118 9.573-12.519 2.21-5.482 3.274-12.027 3.274-19.637 0-7.609-1.064-14.155-3.274-19.8-2.127-5.646-5.318-10.064-9.491-13.255-4.174-3.11-9.329-4.746-15.384-4.746s-11.537 1.636-15.792 4.91c-4.173 3.272-7.365 7.772-9.492 13.418-2.128 5.727-3.191 12.191-3.191 19.392 0 7.2 1.063 13.745 3.273 19.228 2.127 5.482 5.318 9.736 9.573 12.764 4.174 3.027 9.41 4.582 15.629 4.582Zm141.56-26.51V71.839h28.23v119.786h-27.412v-21.273h-1.227c-2.7 6.709-7.119 12.191-13.338 16.446-6.137 4.255-13.747 6.382-22.748 6.382-7.855 0-14.81-1.718-20.783-5.237-5.974-3.518-10.72-8.591-14.075-15.382-3.355-6.709-5.073-14.891-5.073-24.464V71.839h28.312v71.921c0 7.609 2.046 13.664 6.219 18.083 4.173 4.5 9.655 6.709 16.365 6.709 4.173 0 8.183-.982 12.111-3.028 3.927-2.045 7.118-5.072 9.655-9.082 2.537-4.091 3.764-9.164 3.764-15.218Zm65.707-109.395v159.796h-28.23V31.828h28.23Zm44.841 162.169c-7.61 0-14.402-1.391-20.457-4.091-6.055-2.7-10.883-6.791-14.32-12.109-3.518-5.319-5.237-11.946-5.237-19.801 0-6.791 1.228-12.355 3.765-16.773 2.536-4.419 5.891-7.937 10.228-10.637 4.337-2.618 9.164-4.664 14.647-6.055 5.4-1.391 11.046-2.373 16.856-3.027 7.037-.737 12.683-1.391 17.102-1.964 4.337-.573 7.528-1.555 9.574-2.782 1.963-1.309 3.027-3.273 3.027-5.973v-.491c0-5.891-1.718-10.391-5.237-13.664-3.518-3.191-8.51-4.828-15.056-4.828-6.955 0-12.356 1.473-16.447 4.5-4.009 3.028-6.71 6.546-8.183 10.719l-26.348-3.764c2.046-7.282 5.483-13.336 10.31-18.328 4.746-4.909 10.638-8.59 17.511-11.045 6.955-2.455 14.565-3.682 22.912-3.682 5.809 0 11.537.654 17.265 2.045s10.965 3.6 15.711 6.71c4.746 3.109 8.51 7.282 11.455 12.6 2.864 5.318 4.337 11.946 4.337 19.883v80.184h-27.166v-16.446h-.9c-1.719 3.355-4.092 6.464-7.201 9.328-3.109 2.864-6.955 5.237-11.619 6.955-4.828 1.718-10.229 2.536-16.529 2.536Zm7.364-20.701c5.646 0 10.556-1.145 14.729-3.354 4.173-2.291 7.364-5.237 9.655-9.001 2.292-3.763 3.355-7.854 3.355-12.273v-14.155c-.9.737-2.373 1.391-4.5 2.046-2.128.654-4.419 1.145-7.037 1.636-2.619.491-5.155.9-7.692 1.227-2.537.328-4.746.655-6.628.901-4.173.572-8.019 1.472-11.292 2.781-3.355 1.31-5.973 3.11-7.855 5.401-1.964 2.291-2.864 5.318-2.864 8.918 0 5.237 1.882 9.164 5.728 11.782 3.682 2.782 8.51 4.091 14.401 4.091Zm64.643 18.328V71.839h27.412v19.965h1.227c2.21-6.955 5.974-12.274 11.292-16.038 5.319-3.763 11.456-5.645 18.329-5.645 1.555 0 3.355.082 5.237.163 1.964.164 3.601.328 4.91.573v25.938c-1.227-.41-3.109-.819-5.646-1.146a58.814 58.814 0 0 0-7.446-.49c-5.155 0-9.738 1.145-13.829 3.354-4.091 2.209-7.282 5.236-9.655 9.164-2.373 3.927-3.519 8.427-3.519 13.5v70.448h-28.312ZM222.077 39.192l-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z"
|
||||
/>
|
||||
<path
|
||||
fill="url(#c)"
|
||||
d="M388.676 191.625h30.849L363.31 31.828h-35.758l-56.215 159.797h30.848l13.174-39.356h60.061l13.256 39.356Zm-65.461-62.675 21.602-64.311h1.227l21.602 64.311h-44.431Zm126.831-7.527v70.202h-28.23V71.839h27.002v20.374h1.392c2.782-6.71 7.2-12.028 13.255-15.956 6.056-3.927 13.584-5.89 22.503-5.89 8.264 0 15.465 1.8 21.684 5.318 6.137 3.518 10.964 8.673 14.319 15.382 3.437 6.71 5.074 14.81 4.992 24.383v76.175h-28.23v-71.92c0-8.019-2.046-14.237-6.219-18.819-4.173-4.5-9.819-6.791-17.102-6.791-4.91 0-9.328 1.063-13.174 3.272-3.846 2.128-6.792 5.237-9.001 9.328-2.046 4.009-3.191 8.918-3.191 14.728ZM589.233 239c-10.147 0-18.82-1.391-26.103-4.091-7.282-2.7-13.092-6.382-17.511-10.964-4.418-4.582-7.528-9.655-9.164-15.219l25.448-6.136c1.145 2.372 2.782 4.663 4.991 6.954 2.209 2.291 5.155 4.255 8.837 5.81 3.683 1.554 8.428 2.291 14.074 2.291 8.019 0 14.647-1.964 19.884-5.81 5.237-3.845 7.856-10.227 7.856-19.064v-22.665h-1.391c-1.473 2.946-3.601 5.892-6.383 9.001-2.782 3.109-6.464 5.645-10.965 7.691-4.582 2.046-10.228 3.109-17.101 3.109-9.165 0-17.511-2.209-25.039-6.545-7.446-4.337-13.42-10.883-17.757-19.474-4.418-8.673-6.628-19.473-6.628-32.565 0-13.091 2.21-24.301 6.628-33.383 4.419-9.082 10.311-15.955 17.839-20.7 7.528-4.746 15.874-7.037 25.039-7.037 7.037 0 12.846 1.145 17.347 3.518 4.582 2.373 8.182 5.236 10.883 8.51 2.7 3.272 4.746 6.382 6.137 9.327h1.554v-19.8h27.821v121.749c0 10.228-2.454 18.737-7.364 25.447-4.91 6.709-11.538 11.7-20.048 15.055-8.509 3.355-18.165 4.991-28.884 4.991Zm.245-71.266c5.974 0 11.047-1.473 15.302-4.337 4.173-2.945 7.446-7.118 9.573-12.519 2.21-5.482 3.274-12.027 3.274-19.637 0-7.609-1.064-14.155-3.274-19.8-2.127-5.646-5.318-10.064-9.491-13.255-4.174-3.11-9.329-4.746-15.384-4.746s-11.537 1.636-15.792 4.91c-4.173 3.272-7.365 7.772-9.492 13.418-2.128 5.727-3.191 12.191-3.191 19.392 0 7.2 1.063 13.745 3.273 19.228 2.127 5.482 5.318 9.736 9.573 12.764 4.174 3.027 9.41 4.582 15.629 4.582Zm141.56-26.51V71.839h28.23v119.786h-27.412v-21.273h-1.227c-2.7 6.709-7.119 12.191-13.338 16.446-6.137 4.255-13.747 6.382-22.748 6.382-7.855 0-14.81-1.718-20.783-5.237-5.974-3.518-10.72-8.591-14.075-15.382-3.355-6.709-5.073-14.891-5.073-24.464V71.839h28.312v71.921c0 7.609 2.046 13.664 6.219 18.083 4.173 4.5 9.655 6.709 16.365 6.709 4.173 0 8.183-.982 12.111-3.028 3.927-2.045 7.118-5.072 9.655-9.082 2.537-4.091 3.764-9.164 3.764-15.218Zm65.707-109.395v159.796h-28.23V31.828h28.23Zm44.841 162.169c-7.61 0-14.402-1.391-20.457-4.091-6.055-2.7-10.883-6.791-14.32-12.109-3.518-5.319-5.237-11.946-5.237-19.801 0-6.791 1.228-12.355 3.765-16.773 2.536-4.419 5.891-7.937 10.228-10.637 4.337-2.618 9.164-4.664 14.647-6.055 5.4-1.391 11.046-2.373 16.856-3.027 7.037-.737 12.683-1.391 17.102-1.964 4.337-.573 7.528-1.555 9.574-2.782 1.963-1.309 3.027-3.273 3.027-5.973v-.491c0-5.891-1.718-10.391-5.237-13.664-3.518-3.191-8.51-4.828-15.056-4.828-6.955 0-12.356 1.473-16.447 4.5-4.009 3.028-6.71 6.546-8.183 10.719l-26.348-3.764c2.046-7.282 5.483-13.336 10.31-18.328 4.746-4.909 10.638-8.59 17.511-11.045 6.955-2.455 14.565-3.682 22.912-3.682 5.809 0 11.537.654 17.265 2.045s10.965 3.6 15.711 6.71c4.746 3.109 8.51 7.282 11.455 12.6 2.864 5.318 4.337 11.946 4.337 19.883v80.184h-27.166v-16.446h-.9c-1.719 3.355-4.092 6.464-7.201 9.328-3.109 2.864-6.955 5.237-11.619 6.955-4.828 1.718-10.229 2.536-16.529 2.536Zm7.364-20.701c5.646 0 10.556-1.145 14.729-3.354 4.173-2.291 7.364-5.237 9.655-9.001 2.292-3.763 3.355-7.854 3.355-12.273v-14.155c-.9.737-2.373 1.391-4.5 2.046-2.128.654-4.419 1.145-7.037 1.636-2.619.491-5.155.9-7.692 1.227-2.537.328-4.746.655-6.628.901-4.173.572-8.019 1.472-11.292 2.781-3.355 1.31-5.973 3.11-7.855 5.401-1.964 2.291-2.864 5.318-2.864 8.918 0 5.237 1.882 9.164 5.728 11.782 3.682 2.782 8.51 4.091 14.401 4.091Zm64.643 18.328V71.839h27.412v19.965h1.227c2.21-6.955 5.974-12.274 11.292-16.038 5.319-3.763 11.456-5.645 18.329-5.645 1.555 0 3.355.082 5.237.163 1.964.164 3.601.328 4.91.573v25.938c-1.227-.41-3.109-.819-5.646-1.146a58.814 58.814 0 0 0-7.446-.49c-5.155 0-9.738 1.145-13.829 3.354-4.091 2.209-7.282 5.236-9.655 9.164-2.373 3.927-3.519 8.427-3.519 13.5v70.448h-28.312ZM222.077 39.192l-8.019 125.923L137.387 0l84.69 39.192Zm-53.105 162.825-57.933 33.056-57.934-33.056 11.783-28.556h92.301l11.783 28.556ZM111.039 62.675l30.357 73.803H80.681l30.358-73.803ZM7.937 165.115 0 39.192 84.69 0 7.937 165.115Z"
|
||||
/>
|
||||
</g>
|
||||
<defs>
|
||||
<radialGradient
|
||||
id="c"
|
||||
cx="0"
|
||||
cy="0"
|
||||
r="1"
|
||||
gradientTransform="rotate(118.122 171.182 60.81) scale(205.794)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
>
|
||||
<stop stop-color="#FF41F8" />
|
||||
<stop offset=".707" stop-color="#FF41F8" stop-opacity=".5" />
|
||||
<stop offset="1" stop-color="#FF41F8" stop-opacity="0" />
|
||||
</radialGradient>
|
||||
<linearGradient
|
||||
id="b"
|
||||
x1="0"
|
||||
x2="982"
|
||||
y1="192"
|
||||
y2="192"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
>
|
||||
<stop stop-color="#F0060B" />
|
||||
<stop offset="0" stop-color="#F0070C" />
|
||||
<stop offset=".526" stop-color="#CC26D5" />
|
||||
<stop offset="1" stop-color="#7702FF" />
|
||||
</linearGradient>
|
||||
<clipPath id="a"><path fill="#fff" d="M0 0h982v239H0z" /></clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
<h1>Hello, {{ title() }}</h1>
|
||||
<p>Congratulations! Your app is running. 🎉</p>
|
||||
</div>
|
||||
<div class="divider" role="separator" aria-label="Divider"></div>
|
||||
<div class="right-side">
|
||||
<div class="pill-group">
|
||||
@for (item of [
|
||||
{ title: 'Explore the Docs', link: 'https://angular.dev' },
|
||||
{ title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' },
|
||||
{ title: 'Prompt and best practices for AI', link: 'https://angular.dev/ai/develop-with-ai'},
|
||||
{ title: 'CLI Docs', link: 'https://angular.dev/tools/cli' },
|
||||
{ title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' },
|
||||
{ title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' },
|
||||
]; track item.title) {
|
||||
<a
|
||||
class="pill"
|
||||
[href]="item.link"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
<span>{{ item.title }}</span>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="14"
|
||||
viewBox="0 -960 960 960"
|
||||
width="14"
|
||||
fill="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
<div class="social-links">
|
||||
<a
|
||||
href="https://github.com/angular/angular"
|
||||
aria-label="Github"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
<svg
|
||||
width="25"
|
||||
height="24"
|
||||
viewBox="0 0 25 24"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
alt="Github"
|
||||
>
|
||||
<path
|
||||
d="M12.3047 0C5.50634 0 0 5.50942 0 12.3047C0 17.7423 3.52529 22.3535 8.41332 23.9787C9.02856 24.0946 9.25414 23.7142 9.25414 23.3871C9.25414 23.0949 9.24389 22.3207 9.23876 21.2953C5.81601 22.0377 5.09414 19.6444 5.09414 19.6444C4.53427 18.2243 3.72524 17.8449 3.72524 17.8449C2.61064 17.082 3.81137 17.0973 3.81137 17.0973C5.04697 17.1835 5.69604 18.3647 5.69604 18.3647C6.79321 20.2463 8.57636 19.7029 9.27978 19.3881C9.39052 18.5924 9.70736 18.0499 10.0591 17.7423C7.32641 17.4347 4.45429 16.3765 4.45429 11.6618C4.45429 10.3185 4.9311 9.22133 5.72065 8.36C5.58222 8.04931 5.16694 6.79833 5.82831 5.10337C5.82831 5.10337 6.85883 4.77319 9.2121 6.36459C10.1965 6.09082 11.2424 5.95546 12.2883 5.94931C13.3342 5.95546 14.3801 6.09082 15.3644 6.36459C17.7023 4.77319 18.7328 5.10337 18.7328 5.10337C19.3942 6.79833 18.9789 8.04931 18.8559 8.36C19.6403 9.22133 20.1171 10.3185 20.1171 11.6618C20.1171 16.3888 17.2409 17.4296 14.5031 17.7321C14.9338 18.1012 15.3337 18.8559 15.3337 20.0084C15.3337 21.6552 15.3183 22.978 15.3183 23.3779C15.3183 23.7009 15.5336 24.0854 16.1642 23.9623C21.0871 22.3484 24.6094 17.7341 24.6094 12.3047C24.6094 5.50942 19.0999 0 12.3047 0Z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="https://x.com/angular"
|
||||
aria-label="X"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
<svg
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
alt="X"
|
||||
>
|
||||
<path
|
||||
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
<a
|
||||
href="https://www.youtube.com/channel/UCbn1OgGei-DV7aSRo_HaAiw"
|
||||
aria-label="Youtube"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
<svg
|
||||
width="29"
|
||||
height="20"
|
||||
viewBox="0 0 29 20"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
alt="Youtube"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M27.4896 1.52422C27.9301 1.96749 28.2463 2.51866 28.4068 3.12258C29.0004 5.35161 29.0004 10 29.0004 10C29.0004 10 29.0004 14.6484 28.4068 16.8774C28.2463 17.4813 27.9301 18.0325 27.4896 18.4758C27.0492 18.9191 26.5 19.2389 25.8972 19.4032C23.6778 20 14.8068 20 14.8068 20C14.8068 20 5.93586 20 3.71651 19.4032C3.11363 19.2389 2.56449 18.9191 2.12405 18.4758C1.68361 18.0325 1.36732 17.4813 1.20683 16.8774C0.613281 14.6484 0.613281 10 0.613281 10C0.613281 10 0.613281 5.35161 1.20683 3.12258C1.36732 2.51866 1.68361 1.96749 2.12405 1.52422C2.56449 1.08095 3.11363 0.76113 3.71651 0.596774C5.93586 0 14.8068 0 14.8068 0C14.8068 0 23.6778 0 25.8972 0.596774C26.5 0.76113 27.0492 1.08095 27.4896 1.52422ZM19.3229 10L11.9036 5.77905V14.221L19.3229 10Z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * * The content above * * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * * -->
|
||||
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
||||
|
||||
|
||||
<router-outlet />
|
||||
3
src/app/app.routes.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
export const routes: Routes = [];
|
||||
23
src/app/app.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { App } from './app';
|
||||
|
||||
describe('App', () => {
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [App],
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
it('should create the app', () => {
|
||||
const fixture = TestBed.createComponent(App);
|
||||
const app = fixture.componentInstance;
|
||||
expect(app).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should render title', async () => {
|
||||
const fixture = TestBed.createComponent(App);
|
||||
await fixture.whenStable();
|
||||
const compiled = fixture.nativeElement as HTMLElement;
|
||||
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, abdristus');
|
||||
});
|
||||
});
|
||||
12
src/app/app.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Component, signal } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
imports: [RouterOutlet],
|
||||
templateUrl: './app.html',
|
||||
styleUrl: './app.css'
|
||||
})
|
||||
export class App {
|
||||
protected readonly title = signal('abdristus');
|
||||
}
|
||||
13
src/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Abdristus</title>
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
</html>
|
||||
6
src/main.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { appConfig } from './app/app.config';
|
||||
import { App } from './app/app';
|
||||
|
||||
bootstrapApplication(App, appConfig)
|
||||
.catch((err) => console.error(err));
|
||||
1
src/styles.css
Normal file
@@ -0,0 +1 @@
|
||||
/* You can add global styles to this file, and also import other style files */
|
||||
15
tsconfig.app.json
Normal file
@@ -0,0 +1,15 @@
|
||||
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
||||
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out-tsc/app",
|
||||
"types": []
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"src/**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
33
tsconfig.json
Normal file
@@ -0,0 +1,33 @@
|
||||
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
||||
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
||||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"skipLibCheck": true,
|
||||
"isolatedModules": true,
|
||||
"experimentalDecorators": true,
|
||||
"importHelpers": true,
|
||||
"target": "ES2022",
|
||||
"module": "preserve"
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
"strictInputAccessModifiers": true,
|
||||
"strictTemplates": true
|
||||
},
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.app.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
15
tsconfig.spec.json
Normal file
@@ -0,0 +1,15 @@
|
||||
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
||||
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out-tsc/spec",
|
||||
"types": [
|
||||
"vitest/globals"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.spec.ts"
|
||||
]
|
||||
}
|
||||