Skip to content

Commit

Permalink
Merge pull request #470 from Bamdoliro/develop
Browse files Browse the repository at this point in the history
Release - user v1.0.8
  • Loading branch information
SEOKKAMONI authored Nov 16, 2023
2 parents 38bcf1d + 2fcebcd commit 05d1c21
Show file tree
Hide file tree
Showing 516 changed files with 14,919 additions and 13,720 deletions.
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-conventional-changelog"
}
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.vscode
.eslintrc.js
node_modules
esm
dist
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.* @Bamdoliro/maru-frontend
* @SEOKKAMONI @arkk20000
38 changes: 0 additions & 38 deletions .github/workflows/review.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{ts,tsx}": ["prettier --write"]
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.8.1
14 changes: 14 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"endOfLine": "lf",
"jsxSingleQuote": false,
"printWidth": 90,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
11 changes: 0 additions & 11 deletions .prettierrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
![image](https://github.com/Bamdoliro/marururu/assets/102123549/07bb8be6-a90d-48c2-a282-ba05dec78ec3)


# 마루(maru)

마루는 밤돌이로에서 개발 중인 부산소프트웨어마이스터 고등학교의 입학 전형 시스템이에요. <br>
마루는 입학 과정에 있어서 선생님들과 학생들을 편리하게 하는 것을 목적으로 개발하고 있어요.

- [**apps**](https://github.com/Bamdoliro/marururu/tree/develop/apps): 마루의 admin, user 등 다양한 웹이 들어가요. 대표적인 예시로 [user](https://github.com/Bamdoliro/marururu/tree/develop/apps/user)
- [**packages**](https://github.com/Bamdoliro/marururu/tree/develop/packages): 마루의 개발을 도와줄 다양한 라이브러리들이 들어가요. 대표적인 예시로 [@maru/ui](https://github.com/Bamdoliro/marururu/tree/develop/packages/maru-ui), [@maru/theme](https://github.com/Bamdoliro/marururu/tree/develop/packages/maru-theme)
- [**apps**](https://github.com/Bamdoliro/marururu/tree/develop/apps): 마루의 admin, user 등 다양한 웹이 들어가요. 대표적인 예시로 [user](https://github.com/Bamdoliro/marururu/tree/develop/apps/user), [admin](https://github.com/Bamdoliro/marururu/tree/develop/apps/admin)
- [**packages**](https://github.com/Bamdoliro/marururu/tree/develop/packages): 마루의 개발을 도와줄 다양한 라이브러리들이 들어가요. 대표적인 예시로 [@maru/ui](https://github.com/Bamdoliro/marururu/tree/develop/packages/ui), [@maru/design-token](https://github.com/Bamdoliro/marururu/tree/develop/packages/theme)

## 라이선스

Expand Down
13 changes: 0 additions & 13 deletions apps/admin/.babelrc

This file was deleted.

5 changes: 2 additions & 3 deletions apps/admin/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: ['@maru/eslint/common', '@maru/eslint/query', 'plugin:storybook/recommended'],
root: true,
extends: ['@maru/eslint-config/react-ts-noimport', 'plugin:@next/next/recommended'],
};
56 changes: 28 additions & 28 deletions apps/admin/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,36 @@ import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
*/
function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')));
return dirname(require.resolve(join(value, 'package.json')));
}
const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-onboarding'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@storybook/addon-styling'),
],
framework: {
name: getAbsolutePath('@storybook/nextjs'),
options: {},
},
docs: {
autodocs: 'tag',
},
staticDirs: ['../public'],
webpackFinal: async (config) => {
if (config.resolve) {
config.resolve.plugins = [
...(config.resolve.plugins || []),
new TsconfigPathsPlugin({
extensions: config.resolve.extensions,
}),
];
}
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-onboarding'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@storybook/addon-styling'),
],
framework: {
name: getAbsolutePath('@storybook/nextjs'),
options: {},
},
docs: {
autodocs: 'tag',
},
staticDirs: ['../public'],
webpackFinal: async (config) => {
if (config.resolve) {
config.resolve.plugins = [
...(config.resolve.plugins || []),
new TsconfigPathsPlugin({
extensions: config.resolve.extensions,
}),
];
}

return config;
},
return config;
},
};
export default config;
24 changes: 12 additions & 12 deletions apps/admin/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { GlobalStyle } from '@maru/theme';
import { GlobalStyle } from '@maru/design-token';
import { withThemeFromJSXProvider } from '@storybook/addon-styling';
import type { Preview } from '@storybook/react';

export const decorators = [
withThemeFromJSXProvider({
GlobalStyles: GlobalStyle, // Adds your GlobalStyle component to all stories
}),
withThemeFromJSXProvider({
GlobalStyles: GlobalStyle, // Adds your GlobalStyle component to all stories
}),
];

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
8 changes: 4 additions & 4 deletions apps/admin/next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['@maru/theme'],
images: {
domains: ['s3.ap-northeast-2.amazonaws.com'],
},
transpilePackages: ['@maru/design-token'],
images: {
domains: ['s3.ap-northeast-2.amazonaws.com'],
},
};

module.exports = nextConfig;
8 changes: 4 additions & 4 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"build-storybook": "storybook build"
},
"devDependencies": {
"@maru/eslint": "workspace:*",
"@maru/eslint-config": "workspace:*",
"@maru/tsconfig": "workspace:*",
"@next/eslint-plugin-next": "^14.0.0",
"@storybook/addon-essentials": "^7.3.1",
"@storybook/addon-interactions": "^7.3.1",
"@storybook/addon-links": "^7.3.1",
Expand All @@ -26,7 +27,6 @@
"@types/react": "18.2.13",
"@types/react-dom": "18.2.6",
"@types/styled-components": "^5.1.26",
"babel-plugin-styled-components": "^2.1.4",
"eslint-plugin-storybook": "^0.6.13",
"msw": "^1.2.2",
"storybook": "^7.3.1",
Expand All @@ -37,14 +37,14 @@
"dependencies": {
"@maru/hooks": "workspace:*",
"@maru/icon": "workspace:*",
"@maru/theme": "workspace:*",
"@maru/design-token": "workspace:*",
"@maru/ui": "workspace:*",
"@maru/utils": "workspace:*",
"@tanstack/react-query": "^4.32.6",
"@tanstack/react-query-devtools": "^4.32.6",
"@toss/react": "^1.5.0",
"@toss/use-overlay": "^1.3.6",
"axios": "^1.4.0",
"axios": "^1.6.0",
"next": "13.5.2",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
34 changes: 17 additions & 17 deletions apps/admin/src/apis/instance/instance.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import axios from 'axios';

export const maru = axios.create({
baseURL: process.env.NEXT_PUBLIC_BASE_URL,
timeout: 15000,
headers: {
'Content-Type': 'application/json',
},
baseURL: process.env.NEXT_PUBLIC_BASE_URL,
timeout: 15000,
headers: {
'Content-Type': 'application/json',
},
});

maru.interceptors.request.use(
(config) => {
return config;
},
(error) => {
return Promise.reject(error);
},
(config) => {
return config;
},
(error) => {
return Promise.reject(error);
}
);

maru.interceptors.response.use(
(response) => {
return response;
},
async (error) => {
return Promise.reject(error);
},
(response) => {
return response;
},
async (error) => {
return Promise.reject(error);
}
);
14 changes: 7 additions & 7 deletions apps/admin/src/apis/storage/storage.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
type LocalStorageKey = 'access-token' | 'refresh-token';
export class Storage {
static getItem(key: LocalStorageKey) {
return typeof window !== 'undefined' ? localStorage.getItem(key) : null;
}
static getItem(key: LocalStorageKey) {
return typeof window !== 'undefined' ? localStorage.getItem(key) : null;
}

static setItem(key: LocalStorageKey, value: string) {
if (typeof window === 'undefined') return;
localStorage.setItem(key, value);
}
static setItem(key: LocalStorageKey, value: string) {
if (typeof window === 'undefined') return;
localStorage.setItem(key, value);
}
}
Loading

1 comment on commit 05d1c21

@vercel
Copy link

@vercel vercel bot commented on 05d1c21 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.