Skip to content

Commit 60e7854

Browse files
Merge pull request #36 from rule110-io/v0.2.1-beta
V0.2.1 beta
2 parents 9ab74fb + 5363d8d commit 60e7854

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+16454
-729
lines changed

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2.1-beta",
3+
"configurations": [
4+
{
5+
"name": "Wails: build debug",
6+
"type": "go",
7+
"request": "launch",
8+
"mode": "exec",
9+
"program": "${workspaceFolder}/build/surge",
10+
"preLaunchTask": "wails_debug_build",
11+
"env": {},
12+
"args": []
13+
}
14+
]
15+
}

.vscode/task.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "wails_debug_build",
6+
"type": "shell",
7+
"command": "wails build -d"
8+
}
9+
]
10+
}

frontend/package-lock.json

Lines changed: 15362 additions & 168 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "surge",
33
"author": "Christian Busch<[email protected]>",
44
"private": true,
5-
"version": "0.2.0-beta",
5+
"version": "0.2.1-beta",
66
"scripts": {
77
"serve": "vue-cli-service serve",
88
"build": "vue-cli-service build",
@@ -25,6 +25,7 @@
2525
"vue-chartjs": "^3.5.0",
2626
"vue-clamp": "^0.3.1",
2727
"vue-clickaway": "^2.2.2",
28+
"vue-clipboard2": "^0.3.1",
2829
"vue-feather": "^1.0.1",
2930
"vue-filter-pretty-bytes": "^0.1.5",
3031
"vue-lodash": "^2.1.2",
@@ -41,9 +42,9 @@
4142
"eslint": "^6.8.0",
4243
"eslint-plugin-vue": "^6.2.1",
4344
"eventsource-polyfill": "^0.9.6",
44-
"node-sass": "^4.14.1",
45+
"node-sass": "^5.0.0",
4546
"prerender-spa-plugin": "^3.4.0",
46-
"sass-loader": "^7.1.0",
47+
"sass-loader": "^10.1.0",
4748
"vue-svg-loader": "^0.16.0",
4849
"vue-template-compiler": "^2.6.11",
4950
"webpack-hot-middleware": "^2.25.0"

frontend/src/assets/scss/_main.scss

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,35 @@ b {
180180
font-weight: normal;
181181
display: table-cell;
182182
padding: 0 $padding-small $padding-micro $padding-small;
183-
vertical-align: middle;
184183
font-weight: 500;
185184
font-size: $fz-md;
186185
font-family: "Roboto";
186+
transition: $transition-1;
187+
188+
&-action {
189+
position: absolute;
190+
top: 6px;
191+
height: 15px;
192+
width: 15px;
193+
transition: $transition-1;
194+
margin-left: $padding-xs;
195+
196+
&_asc {
197+
transform: scaleY(-1);
198+
}
199+
}
200+
201+
&_active {
202+
color: $primary !important;
203+
}
204+
205+
&_sortable {
206+
cursor: pointer;
207+
208+
&:hover {
209+
color: $primary !important;
210+
}
211+
}
187212

188213
@include dark-theme {
189214
color: color(dark, text-light);

frontend/src/components/File/FileAvatar/FileAvatar.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
&_small {
1515
canvas {
16+
position: absolute;
17+
left: -4px;
18+
top: -4px;
1619
height: 35px;
1720
width: 35px;
1821
}

frontend/src/components/File/FileAvatar/FileAvatar.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
},
2626
scale: {
2727
type: Number,
28-
default: 5,
28+
default: 15,
2929
},
3030
type: {
3131
type: String,
@@ -44,8 +44,6 @@ export default {
4444
const avatar = createIcon({
4545
// All options are optional
4646
seed: this.seeder, // seed used to generate icon data, default: random
47-
bgcolor: "#fff", // choose a different background color, default: white
48-
color: "#02d2b3",
4947
size: this.size, // width/height of the icon in blocks, default: 10
5048
scale: this.scale, // width/height of each block in pixels, default: 5
5149
});

frontend/src/components/File/FileChunks/FileChunks.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
display: flex;
33
flex-direction: column;
44
justify-content: space-between;
5+
width: 156px;
56

67
&__title {
78
text-align: center;
8-
margin-bottom: $padding-micro;
99
}
1010

1111
&__progress {
12-
width: 156px;
12+
width: 100%;
1313
height: 12px;
1414
position: relative;
1515
display: flex;
1616
align-items: center;
1717
margin: 0 auto;
18+
margin-top: $padding-micro;
1819
}
1920
}

frontend/src/components/File/FileChunks/FileChunks.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<template>
22
<div class="file-chunks">
33
<div class="file-chunks__title text_wrap_none">
4+
<template v-if="file.IsMissing">
5+
Missing
6+
</template>
7+
<template v-else-if="file.IsHashing">
8+
Hashing
9+
</template>
410
<template
5-
v-if="!file.IsDownloading && !file.IsUploading && !file.IsPaused"
11+
v-else-if="!file.IsDownloading && !file.IsUploading && !file.IsPaused"
612
>
713
Finished
814
</template>
@@ -15,6 +21,7 @@
1521
<template v-else> Downloading: {{ progress.toFixed(2) }}% </template>
1622
</div>
1723
<canvas
24+
v-if="file.IsDownloading || file.IsPaused"
1825
class="file-chunks__progress"
1926
ref="canvas"
2027
width="156"
Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
11
.file-hash {
2-
width: 205px;
2+
width: 160px;
3+
cursor: pointer;
4+
position: relative;
5+
display: flex;
6+
align-items: center;
7+
8+
&:after {
9+
position: absolute;
10+
top: -2px;
11+
left: 0;
12+
display: inline-block;
13+
color: $primary;
14+
white-space: nowrap;
15+
text-align: center;
16+
transform: translate3d(-50%, 0, 0);
17+
-webkit-backface-visibility: hidden;
18+
opacity: 0.001;
19+
content: attr(data-label);
20+
font-size: $fz-sm;
21+
}
22+
23+
&_active {
24+
&:after {
25+
animation: floatup 0.5s ease-in-out;
26+
}
27+
}
28+
29+
&:hover & {
30+
&__icon {
31+
color: $primary;
32+
}
33+
}
34+
35+
&__icon {
36+
height: 14px;
37+
width: 14px;
38+
position: relative;
39+
transition: $transition-1;
40+
margin-right: $padding-micro;
41+
}
42+
43+
&__text {
44+
flex: 1;
45+
}
46+
}
47+
48+
@keyframes floatup {
49+
20% {
50+
opacity: 0.999;
51+
}
52+
100% {
53+
transform: translate3d(-50%, -17px, 0);
54+
}
355
}

0 commit comments

Comments
 (0)