Skip to content

Commit

Permalink
feat!: migration from fsd to modular architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
mnenie committed Jan 15, 2025
1 parent b390af7 commit 716ce00
Show file tree
Hide file tree
Showing 414 changed files with 14,450 additions and 0 deletions.
44 changes: 44 additions & 0 deletions apps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Core

> [!NOTE]
> Нere are the main parts of our app
## ✍️ Usage

### Frontend

```sh
cd client
```

#### Dev

```sh
# Install dependencies
pnpm i

# Development
pnpm run dev
```

#### UI Kit

```sh
pnpm run storybook
```

### Backend

#### Dev

```sh
cd server
```

```sh
# Install dependencies
pnpm i

# Development
pnpm run start
```
32 changes: 32 additions & 0 deletions apps/client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo

*storybook.log
Binary file added apps/client/.storybook/-static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions apps/client/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { StorybookConfig } from '@storybook/vue3-vite'

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-themes',
],
framework: {
name: '@storybook/vue3-vite',
options: {
docgen: 'vue-component-meta',
},
},
viteFinal: async config => ({
...config,
...(await import('unocss/vite')).default,
}),
staticDirs: ['./-static'],
}
export default config
5 changes: 5 additions & 0 deletions apps/client/.storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<style>
.sidebar-header img {
max-width: 110px !important;
}
</style>
12 changes: 12 additions & 0 deletions apps/client/.storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { addons } from '@storybook/manager-api'
import { themes } from '@storybook/theming'
// @ts-ignore
import logo from './-static/logo.png'

addons.setConfig({
theme: {
...themes.light,
brandImage: logo,
brandUrl: 'https://jenda.vercel.app/',
},
})
52 changes: 52 additions & 0 deletions apps/client/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { withThemeByClassName } from '@storybook/addon-themes'
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
import { themes } from '@storybook/theming'
import { useColorMode } from '@vueuse/core'
import type { Preview } from '@storybook/vue3'

import 'virtual:uno.css'
import '@unocss/reset/tailwind-compat.css'
import '@/app/styles/primary/index.css'

const preview: Preview = {
decorators: [
withThemeByClassName({
themes: {
light: 'light',
dark: 'dark',
},
defaultTheme: 'light',
}),
],
parameters: {
options: {
storySort: (a, b) =>
a.id === b.id
? 0
: a.id.localeCompare(b.id, undefined, { numeric: true }),
},
layout: 'centered',
viewport: {
viewports: INITIAL_VIEWPORTS,
defaultViewport: 'desktop',
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
docs: {
theme: themes.light,
},
backgrounds: {
disable: true,
},
},
}

useColorMode({
initialValue: 'light',
})

export default preview
21 changes: 21 additions & 0 deletions apps/client/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Alex Peshkov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions apps/client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# @jenda/client

> [!WARNING]
> 🚧 Client currently on dev mode rn
16 changes: 16 additions & 0 deletions apps/client/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"style": "new-york",
"typescript": true,
"tsConfigPath": "./tsconfig.json",
"tailwind": {
"config": "tailwind.config.js",
"css": "@/app/styles/primary/index.scss",
"baseColor": "neutral",
"cssVariables": false
},
"framework": "vite",
"aliases": {
"components": "@/shared",
"utils": "@/shared/lib/shadcn/utils"
}
}
2 changes: 2 additions & 0 deletions apps/client/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference types="vite/client" />
/// <reference types="unplugin-vue-router/client" />
116 changes: 116 additions & 0 deletions apps/client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
import jendaEslintConfig from '@jenda/eslint-config'
import vitest from '@vitest/eslint-plugin'
import storybook from 'eslint-plugin-storybook'

export default jendaEslintConfig(
{
vue: true,
typescript: true,
formatters: {
css: true,
},
},
{
files: ['**/*.vue'],
rules: {
'vue/multi-word-component-names': 'warn',
'vue/block-order': [
'error',
{
order: ['script', 'template', 'style'],
},
],
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{
registeredComponentsOnly: false,
},
],
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
},
},
],
'vue/max-attributes-per-line': [
'error',
{
singleline: { max: 10 },
multiline: { max: 1 },
},
],
},
},
{
files: ['src/pages/**/*.vue'],
rules: {
'vue/multi-word-component-names': 'off',
},
},
{
rules: {
'import/order': [
'error',
{
groups: [
'builtin',
['external', 'internal'],
'parent',
'sibling',
'index',
'object',
'type',
],
pathGroups: [
{
pattern: 'vue',
group: 'external',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['type'],
},
],
'perfectionist/sort-imports': 'off',
},
},
{
files: ['__tests__/*'],
plugins: {
vitest,
},
rules: {
...vitest.configs.recommended.rules,
'vitest/expect-expect': 'off',
'vitest/valid-expect': 'error',
},
settings: {
vitest: {
typecheck: true,
},
},
languageOptions: {
globals: {
...vitest.environments.env.globals,
definePage: 'readonly',
},
},
},
{
files: ['**/*.stories.*'],
plugins: {
storybook,
},
rules: {
...storybook.configs['flat/recommended'].rules,
},
},
{
settings: {
'import/core-modules': ['vue-router/auto-routes'],
},
},
)
25 changes: 25 additions & 0 deletions apps/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1, user-scalable=no" />
<title>Jenda - cloud program for project and task management</title>
<meta name="description" content="Jenda is a cloud-based program for project and task management that helps you work individually to solve your own tasks or collaborate with a team to manage company projects." />
<meta name="keywords" content="Jenda, Cloud app, Task management, Board, Tasks, Collaboration, Project management, Productivity, Online boards, Workflow management, Teamwork, Task tracking, To-do lists, Agile, Kanban, Virtual boards, Remote work, Task planner, Task prioritization, Work organization, Project tracking"
/>
<!-- open graph -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenda.vercel.app/" />
<meta property="og:title" content="Jenda - Cloud Program for Project and Task Management" />
<meta property="og:description" content="Jenda is a cloud-based program for project and task management that helps you work individually to solve your own tasks or collaborate with a team to manage company projects." />
<meta property="og:image" content="https://jenda.vercel.app/icons/kanban.png" />
<meta property="og:site_name" content="Jenda" />
<meta property="twitter:image" content="https://jenda.vercel.app/icons/kanban.png" />
<meta property="twitter:card" content="summary_large_image" />
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 716ce00

Please sign in to comment.