Skip to content

Commit

Permalink
fix: subapp4 dev port
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun committed Oct 18, 2023
1 parent 5bae274 commit 21b38cd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 67 deletions.
22 changes: 21 additions & 1 deletion packages/main/src/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ button {
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
Expand All @@ -34,6 +33,27 @@ button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #fff;
}

a:hover {
color: #747bff;
}

button {
background-color: #f9f9f9;
}
}

html.dark {
button {
background-color: #1a1a1a;
}
}

.card {
padding: 2em;
}
32 changes: 0 additions & 32 deletions packages/subapp2/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,3 @@ h1 {
font-size: 3.2em;
line-height: 1.1;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
32 changes: 0 additions & 32 deletions packages/subapp3/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,3 @@ h1 {
padding: 2rem;
text-align: center;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
4 changes: 2 additions & 2 deletions packages/subapp4/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import MicroVitePlugin from '@micro-fe/vite-plugin';

// TODO: change to real deploy domain
const DEPLOY_URL = 'http://localhost:8004';
const VITE_APP_NAME = 'subapp1';
const VITE_APP_NAME = 'subapp4';
const DEV_HOST = 'localhost';
const DEV_PORT = 8001;
const DEV_PORT = 8004;
const isProd = process.env.NODE_ENV === 'production';
const isMicro = process.env.VITE_MICRO_MODE === 'true';

Expand Down

0 comments on commit 21b38cd

Please sign in to comment.