forked from TEAM-MAT/lockerweb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from EATSTEAK/dev
0.11.1
- Loading branch information
Showing
184 changed files
with
9,126 additions
and
9,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
pnpm install --frozen-lockfile | ||
pnpm -r prettier | ||
pnpm -r lint | ||
pnpm -r check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Check code | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, edited, reopened, synchronize ] | ||
jobs: | ||
check: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7 | ||
run_install: false | ||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Run prettier check | ||
run: pnpm -r prettier | ||
- name: Run eslint in server and types | ||
run: pnpm -r --filter=!client lint | ||
- name: Run eslint on changed files in client | ||
uses: tj-actions/[email protected] | ||
with: | ||
path: "./packages/client" | ||
file_extensions: | | ||
**/*.ts | ||
**/*.svelte | ||
**/*.js | ||
**/*.json | ||
- name: Build client | ||
run: pnpm -r --filter=client build | ||
- name: Run svelte-check | ||
run: pnpm -r check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,49 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'plugin:import/recommended', | ||
'plugin:import/typescript', | ||
'plugin:tailwindcss/recommended', | ||
'eslint:recommended', | ||
'airbnb-typescript/base', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier' | ||
], | ||
plugins: ['svelte3', '@typescript-eslint', 'tailwindcss'], | ||
ignorePatterns: ['*.cjs'], | ||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], | ||
settings: { | ||
'svelte3/typescript': () => require('typescript') | ||
}, | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
sourceType: 'module', | ||
ecmaVersion: 2020 | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true | ||
} | ||
root: true, | ||
extends: ['plugin:import/recommended', 'eslint:recommended'], | ||
plugins: ['svelte3', '@typescript-eslint', 'tailwindcss'], | ||
ignorePatterns: ['*.cjs'], | ||
overrides: [ | ||
{ | ||
files: ['*.svelte'], | ||
processor: 'svelte3/svelte3', | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'plugin:import/typescript', | ||
'airbnb-typescript/base', | ||
'plugin:tailwindcss/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
], | ||
rules: { | ||
'@typescript-eslint/indent': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['*.ts'], | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'plugin:import/typescript', | ||
'airbnb-typescript/base', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
], | ||
rules: { | ||
'@typescript-eslint/indent': 'off', | ||
}, | ||
}, | ||
], | ||
settings: { | ||
'svelte3/typescript': () => require('typescript'), | ||
}, | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100 | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 100, | ||
"bracketSameLine": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
plugins: [require('prettier-plugin-tailwindcss')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import { exec } from 'child_process'; | ||
|
||
exec('aws cloudformation describe-stacks --stack-name ssu-it-locker', (err, stdout, stderr) => { | ||
if (err) { | ||
console.error(`Exception thrown: ${err.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Error occurred: ${stderr}`); | ||
return; | ||
} | ||
const stackObj = JSON.parse(stdout); | ||
const s3Name = stackObj?.['Stacks']?.[0]?.['Outputs']?.find( | ||
(elem) => elem['OutputKey'] === 'FrontS3BucketName' | ||
)?.['OutputValue']; | ||
if (!s3Name) { | ||
console.error('Cannot find s3 bucket. Please deploy lambda first.'); | ||
return; | ||
} | ||
console.log(`Found s3 bucket: ${s3Name}`); | ||
exec(`aws s3 rm "s3://${s3Name}/" --recursive`, (err, stdout, stderr) => { | ||
if (err) { | ||
console.error(`Exception thrown: ${err.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Error occurred: ${stderr}`); | ||
return; | ||
} | ||
console.log(`${stdout}`); | ||
}); | ||
if (err) { | ||
console.error(`Exception thrown: ${err.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Error occurred: ${stderr}`); | ||
return; | ||
} | ||
const stackObj = JSON.parse(stdout); | ||
const s3Name = stackObj?.['Stacks']?.[0]?.['Outputs']?.find( | ||
(elem) => elem['OutputKey'] === 'FrontS3BucketName', | ||
)?.['OutputValue']; | ||
if (!s3Name) { | ||
console.error('Cannot find s3 bucket. Please deploy lambda first.'); | ||
return; | ||
} | ||
console.log(`Found s3 bucket: ${s3Name}`); | ||
exec(`aws s3 rm "s3://${s3Name}/" --recursive`, (err, stdout, stderr) => { | ||
if (err) { | ||
console.error(`Exception thrown: ${err.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Error occurred: ${stderr}`); | ||
return; | ||
} | ||
console.log(`${stdout}`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import { exec } from 'child_process'; | ||
|
||
exec('aws cloudformation describe-stacks --stack-name lockerweb', (err, stdout, stderr) => { | ||
if (err) { | ||
console.error(`Exception thrown: ${err.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Error occurred: ${stderr}`); | ||
return; | ||
} | ||
const stackObj = JSON.parse(stdout); | ||
const s3Name = stackObj?.['Stacks']?.[0]?.['Outputs']?.find( | ||
(elem) => elem['OutputKey'] === 'FrontS3BucketName' | ||
)?.['OutputValue']; | ||
if (!s3Name) { | ||
console.error('Cannot find s3 bucket. Please deploy lambda first.'); | ||
return; | ||
} | ||
console.log(`Found s3 bucket: ${s3Name}`); | ||
exec(`aws s3 sync ./build "s3://${s3Name}/" --delete`, (err, stdout, stderr) => { | ||
if (err) { | ||
console.error(`Exception thrown: ${err.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Error occurred: ${stderr}`); | ||
return; | ||
} | ||
console.log(`${stdout}`); | ||
}); | ||
if (err) { | ||
console.error(`Exception thrown: ${err.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Error occurred: ${stderr}`); | ||
return; | ||
} | ||
const stackObj = JSON.parse(stdout); | ||
const s3Name = stackObj?.['Stacks']?.[0]?.['Outputs']?.find( | ||
(elem) => elem['OutputKey'] === 'FrontS3BucketName', | ||
)?.['OutputValue']; | ||
if (!s3Name) { | ||
console.error('Cannot find s3 bucket. Please deploy lambda first.'); | ||
return; | ||
} | ||
console.log(`Found s3 bucket: ${s3Name}`); | ||
exec(`aws s3 sync ./build "s3://${s3Name}/" --delete`, (err, stdout, stderr) => { | ||
if (err) { | ||
console.error(`Exception thrown: ${err.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Error occurred: ${stderr}`); | ||
return; | ||
} | ||
console.log(`${stdout}`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/* Write your global styles here, in PostCSS syntax */ | ||
/*noinspection CssUnknownTarget*/ | ||
@import url('https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable.css'); | ||
|
||
@import 'css/normalize.css'; | ||
|
@@ -8,15 +9,15 @@ | |
@tailwind utilities; | ||
|
||
html { | ||
font-size: 1em; | ||
line-height: 1.4; | ||
font-size: 1em; | ||
line-height: 1.4; | ||
} | ||
|
||
:root { | ||
font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, | ||
font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, | ||
Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', | ||
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; | ||
@apply text-gray-700; | ||
@apply text-gray-700; | ||
} | ||
|
||
h1, | ||
|
@@ -25,29 +26,29 @@ h3, | |
h4, | ||
h5, | ||
h6 { | ||
@apply font-bold; | ||
@apply font-bold; | ||
} | ||
|
||
h1 { | ||
@apply text-6xl; | ||
@apply text-6xl; | ||
} | ||
|
||
h2 { | ||
@apply text-5xl; | ||
@apply text-5xl; | ||
} | ||
|
||
h3 { | ||
@apply text-4xl; | ||
@apply text-4xl; | ||
} | ||
|
||
h4 { | ||
@apply text-2xl; | ||
@apply text-2xl; | ||
} | ||
|
||
h5 { | ||
@apply text-xl; | ||
@apply text-xl; | ||
} | ||
|
||
h6 { | ||
@apply text-lg; | ||
@apply text-lg; | ||
} |
Oops, something went wrong.