-
Notifications
You must be signed in to change notification settings - Fork 59
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 #113 from HuolalaTech/feat/harbor-support-period
feat: harbor support periods log
- Loading branch information
Showing
44 changed files
with
2,808 additions
and
1,004 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 117 additions & 0 deletions
117
packages/page-spy-browser/src/assets/styles/index.module.less
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,117 @@ | ||
@import url(./variable.less); | ||
:global { | ||
#__pageSpy { | ||
font-size: @font-size; | ||
line-height: 1; | ||
.page-spy-logo { | ||
--top-radius: 100%; | ||
--right-radius: 100%; | ||
--bottom-radius: 100%; | ||
--left-radius: 100%; | ||
position: fixed; | ||
right: (40em / @font-size); | ||
bottom: (80em / @font-size); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: (@size / @font-size); | ||
height: (@size / @font-size); | ||
font-size: (14em / @font-size); | ||
border-radius: (@size / @font-size); | ||
background-color: #fff; | ||
box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.2); | ||
cursor: pointer; | ||
z-index: 13000; | ||
transition: | ||
opacity ease-in-out 0.3s, | ||
transform ease-in-out 0.3s, | ||
background-color ease-in-out 0.3s, | ||
filter ease-in-out 0.3s; | ||
&.inactive { | ||
background-color: #a2a2a2; | ||
filter: grayscale(1); | ||
} | ||
|
||
&::after { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
transform: rotateZ(45deg); | ||
background-color: white; | ||
border-top-left-radius: var(--top-radius); | ||
border-top-right-radius: var(--right-radius); | ||
border-bottom-right-radius: var(--bottom-radius); | ||
border-bottom-left-radius: var(--left-radius); | ||
transition: border-radius linear 0.15s; | ||
} | ||
|
||
.hidden-mixin { | ||
opacity: 0.35; | ||
} | ||
@logo-hidden-translate: 65%; | ||
@img-hidden-translate: 30%; | ||
&.hidden-in-top { | ||
.hidden-mixin; | ||
transform: translateY(-(@logo-hidden-translate)); | ||
img { | ||
transform: translateY(@img-hidden-translate); | ||
} | ||
} | ||
&.hidden-in-right { | ||
.hidden-mixin; | ||
transform: translateX(@logo-hidden-translate); | ||
img { | ||
transform: translateX(-(@img-hidden-translate)); | ||
} | ||
} | ||
&.hidden-in-bottom { | ||
.hidden-mixin; | ||
transform: translateY(@logo-hidden-translate); | ||
img { | ||
transform: translateY(-(@img-hidden-translate)); | ||
} | ||
} | ||
&.hidden-in-left { | ||
.hidden-mixin; | ||
transform: translateX(-(@logo-hidden-translate)); | ||
img { | ||
transform: translateX(@img-hidden-translate); | ||
} | ||
} | ||
img { | ||
position: relative; | ||
display: block; | ||
z-index: 100; | ||
transition: transform ease-in-out 0.1s 0.4s; | ||
width: (50em / @font-size); | ||
} | ||
} | ||
} | ||
} | ||
|
||
.connectInfo { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
gap: 4px; | ||
> p { | ||
flex: 33.3% 0 0; | ||
text-align: center; | ||
overflow: hidden; | ||
span { | ||
font-size: (12em / @font-size); | ||
color: #aaa; | ||
} | ||
b { | ||
display: block; | ||
margin-top: 12px; | ||
font-size: (18em / @font-size); | ||
color: #333; | ||
.text-ellipse(); | ||
} | ||
} | ||
} |
149 changes: 149 additions & 0 deletions
149
packages/page-spy-browser/src/assets/styles/modal.module.less
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,149 @@ | ||
@import url(./variable.less); | ||
|
||
@padding: (8em / @font-size) (14em / @font-size); | ||
|
||
.modal { | ||
display: none; | ||
position: fixed; | ||
inset: 0; | ||
z-index: 13000; | ||
font-size: @font-size; | ||
line-height: 1; | ||
&:global { | ||
&.show { | ||
display: block; | ||
:local { | ||
animation: fadeIn 0.3s ease-in-out forwards; | ||
} | ||
@keyframes fadeIn { | ||
0% { | ||
background-color: rgba(0, 0, 0, 0); | ||
} | ||
100% { | ||
background-color: rgba(0, 0, 0, 0.3); | ||
} | ||
} | ||
:local(.content) { | ||
:local { | ||
animation: scaleIn 0.3s ease-in forwards; | ||
} | ||
@keyframes scaleIn { | ||
0% { | ||
opacity: 0; | ||
transform: translate3d(-50%, -50%, 0) scale(0.8); | ||
} | ||
70% { | ||
opacity: 1; | ||
transform: translate3d(-50%, -50%, 0) scale(1.1); | ||
} | ||
100% { | ||
transform: translate3d(-50%, -50%, 0) scale(1); | ||
} | ||
} | ||
} | ||
} | ||
&.leaving { | ||
display: block; | ||
:local { | ||
animation: fadeOut 0.3s ease-in-out forwards; | ||
} | ||
@keyframes fadeOut { | ||
0% { | ||
background-color: rgba(0, 0, 0, 0.3); | ||
} | ||
100% { | ||
background-color: rgba(0, 0, 0, 0); | ||
} | ||
} | ||
:local(.content) { | ||
:local { | ||
animation: scaleOut 0.3s ease-out forwards; | ||
} | ||
@keyframes scaleOut { | ||
0% { | ||
opacity: 1; | ||
transform: translate3d(-50%, -50%, 0) scale(1); | ||
} | ||
30% { | ||
transform: translate3d(-50%, -50%, 0) scale(1.1); | ||
} | ||
60% { | ||
opacity: 0; | ||
transform: translate3d(-50%, -50%, 0) scale(0.9); | ||
} | ||
100% { | ||
opacity: 0; | ||
transform: translate3d(-50%, -50%, 0) scale(0.9); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
.content { | ||
position: absolute; | ||
left: 50%; | ||
top: 45%; | ||
transform: translate3d(-50%, -50%, 0); | ||
width: 90%; | ||
background-color: #fafafa; | ||
border-radius: (6em / @font-size); | ||
overflow: hidden; | ||
@media screen and (min-width: 440px) { | ||
max-width: 70%; | ||
} | ||
@media screen and (min-width: 768px) { | ||
max-width: 55%; | ||
} | ||
@media screen and (min-width: 1024px) { | ||
max-width: 40%; | ||
} | ||
@media screen and (min-width: 1440px) { | ||
max-width: 30%; | ||
} | ||
@media screen and (min-width: 1920px) { | ||
max-width: 25%; | ||
} | ||
} | ||
|
||
.header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: @padding; | ||
color: white; | ||
background-color: var(--primary-color); | ||
.headerLeft { | ||
display: flex; | ||
align-items: center; | ||
gap: (8em / @font-size); | ||
.logo { | ||
height: (28em / @font-size); | ||
} | ||
b { | ||
font-size: (20em / @font-size); | ||
} | ||
} | ||
.headerRight { | ||
padding: 6px; | ||
cursor: pointer; | ||
.close { | ||
width: (24em / @font-size); | ||
height: (24em / @font-size); | ||
} | ||
} | ||
} | ||
.main { | ||
padding: @padding; | ||
} | ||
.footer { | ||
display: flex; | ||
justify-content: flex-end; | ||
align-items: center; | ||
gap: (8em / @font-size); | ||
padding: @padding; | ||
border-top: 1px solid #dedede; | ||
button { | ||
.common-button(); | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
packages/page-spy-browser/src/assets/styles/toast.module.less
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,34 @@ | ||
@import url(./variable.less); | ||
|
||
.toast { | ||
position: fixed; | ||
left: 50%; | ||
top: 10%; | ||
transform: translate3d(-50%, 0, 0); | ||
|
||
max-width: 50vw; | ||
padding: (10em / @font-size) (12em / @font-size); | ||
.text-ellipse(); | ||
font-weight: 500; | ||
color: var(--primary-color); | ||
background-color: #fff; | ||
border-radius: (4em / @font-size); | ||
box-shadow: 0px 4px 4px 2px rgba(0, 0, 0, 0.05); | ||
z-index: 99999; | ||
:local { | ||
animation: slideIn 0.3s ease-in-out forwards; | ||
} | ||
@keyframes slideIn { | ||
0% { | ||
transform: translate3d(-50%, (25em / @font-size), 0); | ||
opacity: 0; | ||
} | ||
80% { | ||
transform: translate3d(-50%, (-10em / @font-size), 0); | ||
} | ||
100% { | ||
transform: translate3d(-50%, 0, 0); | ||
opacity: 1; | ||
} | ||
} | ||
} |
Oops, something went wrong.