Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test on Dev

on:
push:
branches: [dev]
branches: [dev, main]

workflow_dispatch:

Expand All @@ -23,5 +23,17 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Test Package
- name: Test Type
run: npm run test:type

- name: Test Format
run: npm run check:format:check

- name: Test Lint
run: npm run check:lint

- name: Test Vitest
run: npm run test:vitest

- name: Test Pack
run: npm pack --dry-run --json --silent
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"test:type": "tsc --noEmit",
"test:use--init": "npm pack && tsx ./scripts/initPlayground.ts",
"test:use": "npm run test:use--init && tsx ./scripts/testPlayground.ts",
"test:ci": "npm run test:type && npm run check:format:check && npm run test:vitest",

"check:format--write": "prettier . --write",
"check:format--check": "prettier . --check",
"check:format:write": "prettier . --write",
"check:format:check": "prettier . --check",
"check:lint": "eslint .",
"check:lint--fix": "eslint . --fix",
"check:lint:fix": "eslint . --fix",

"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
Expand Down
94 changes: 49 additions & 45 deletions public/main/index.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,52 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tyoi-server | デフォルトページ</title>
<link rel="stylesheet" href="./src/style/init.css">
<link rel="stylesheet" href="./src/style/index.css">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>tyoi-server | デフォルトページ</title>
<link rel="stylesheet" href="./src/style/init.css" />
<link rel="stylesheet" href="./src/style/index.css" />

<link rel="icon" href="./src/icon/favicon.webp">
</head>
<body>
<header class="header">
<h1 class="header-title">tyoi-server</h1>
</header>
<main class="main">
<section class="main-section main-hero">
<div class="main-hero-title">
<p class="main-hero-title-text">tyoi-server</p>
<p class="main-hero-title-description">Small local API and static file server framework.</p>
</div>
<div class="main-hero-status">
<span class="main-hero-status-icon">●</span>
<p class="main-hero-status-text">Server is Running</p>
</div>
</section>
<section class="main-section main-info">
<div class="main-section-header">
<span class="main-section-header-icon">●</span>
<h2 class="main-section-header-title">Server Test Page</h2>
</div>
<div class="main-section-main">
<p>tyoi-api-server が正常に起動し、このページを配信しています。</p>
</div>
</section>
<link rel="icon" href="./src/icon/favicon.webp" />
</head>
<body>
<header class="header">
<h1 class="header-title">tyoi-server</h1>
</header>
<main class="main">
<section class="main-section main-hero">
<div class="main-hero-title">
<p class="main-hero-title-text">tyoi-server</p>
<p class="main-hero-title-description">
Small local API and static file server framework.
</p>
</div>
<div class="main-hero-status">
<span class="main-hero-status-icon">●</span>
<p class="main-hero-status-text">Server is Running</p>
</div>
</section>
<section class="main-section main-info">
<div class="main-section-header">
<span class="main-section-header-icon">●</span>
<h2 class="main-section-header-title">Server Test Page</h2>
</div>
<div class="main-section-main">
<p>tyoi-api-server が正常に起動し、このページを配信しています。</p>
</div>
</section>

<section class="main-section main-note">
<div class="main-section-header">
<span class="main-section-header-icon">!</span>
<h2 class="main-section-header-title">Note</h2>
</div>
<div class="main-section-main">
<p>このページは動作確認用です。<br>使用するときは任意のディレクトリーにサーバーをインストールしてください。</p>
</div>
</section>
</main>
</body>
</html>
<section class="main-section main-note">
<div class="main-section-header">
<span class="main-section-header-icon">!</span>
<h2 class="main-section-header-title">Note</h2>
</div>
<div class="main-section-main">
<p>
このページは動作確認用です。<br />使用するときは任意のディレクトリーにサーバーをインストールしてください。
</p>
</div>
</section>
</main>
</body>
</html>
38 changes: 18 additions & 20 deletions public/main/src/style/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body{
body {
display: flex;
flex-direction: column;

Expand All @@ -12,7 +12,7 @@ body{
background-color: #0e1220;
color: #ebebeb;
}
.header{
.header {
width: 100%;
height: 2.5em;

Expand All @@ -35,7 +35,7 @@ body{

} */

.main-section{
.main-section {
width: 100%;
height: auto;
overflow: hidden;
Expand All @@ -46,7 +46,7 @@ body{
border-radius: 5px;
box-sizing: border-box;
}
.main-section-header{
.main-section-header {
display: flex;
align-items: center;
gap: 0.3em;
Expand All @@ -59,22 +59,22 @@ body{
background-color: #5a668f40;
border-bottom: #ebebeb4b 1px solid;
}
.main-section-header-icon{
.main-section-header-icon {
font-size: 0.8em;
}
.main-section-header-title{
.main-section-header-title {
font-size: 0.9em;
font-weight: bold;
}

.main-section-main{
.main-section-main {
padding: 0.8em 1em;

width: 100%;
height: auto;
}

.main-hero{
.main-hero {
display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -86,50 +86,48 @@ body{
padding-bottom: 2em;
box-sizing: border-box;
}
.main-hero-title{
.main-hero-title {
display: flex;
flex-direction: column;
justify-content: center;
gap: 0.5em;
box-sizing: border-box;
}
.main-hero-title-box{
.main-hero-title-box {
display: flex;
flex-direction: column;
justify-content: center;
gap: 0.5em;
box-sizing: border-box;
}
.main-hero-title-text{
.main-hero-title-text {
font-size: 2em;
font-weight: bold;
background: linear-gradient(90deg, #372dff 0%, #ff8bff 70%);
background-clip: text;
color: transparent;
}
.main-hero-title-description{
.main-hero-title-description {
width: 60%;
font-size: 1em;
}
.main-hero-status{
.main-hero-status {
width: fit-content;
display: inline-flex;
justify-content: center;
align-items: center;
gap: 0.5em;

color: #55CA93;
background-color: #55CA9320;
border: #55CA9320 1px solid;
color: #55ca93;
background-color: #55ca9320;
border: #55ca9320 1px solid;

padding: 0.3em 0.6em;
border-radius: 5px;
}
.main-hero-status-icon{
.main-hero-status-icon {
font-size: 0.8em;
}
.main-hero-status-text{
.main-hero-status-text {
font-size: 0.8em;
}


15 changes: 10 additions & 5 deletions public/main/src/style/init.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
body{
body {
margin: 0;
padding: 0;
}

h1,h2,h3,h4,h5,h6{
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 1em;
font-weight:unset;
font-weight: unset;
margin: 0;
}
p{
p {
margin: 0;
}
}
Loading
Loading