Skip to content

Commit 233c257

Browse files
committed
version 13.0.0
1 parent 97882ac commit 233c257

3,576 files changed

Lines changed: 154 additions & 24922 deletions

File tree

Some content is hidden

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

app/anime-search/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</form>
3838
</section>
3939

40-
<section class="anime-list scroll" id="anime-cards"></section>
40+
<section class="anime-list" id="anime-cards"></section>
4141
</main>
4242

4343
<script async src="renderer.js"></script>

app/anime-search/main.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/* table */
22
.anime-list {
3-
scrollbar-width: thin;
4-
scrollbar-color: #fff #000;
53
overflow: auto;
64
height: 60vh;
75
margin-top: 1vh;
@@ -10,4 +8,4 @@
108
grid-template-rows: 1fr 1fr;
119
grid-template-areas: ". .";
1210
gap: 12px 10px;
13-
}
11+
}

app/components/links.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ module.exports = [
1414
page: '../html-validator/index.html',
1515
title: 'HTML validator'
1616
},
17+
{
18+
page: '../css-validator/index.html',
19+
title: 'CSS validator'
20+
},
1721
{
1822
page: '../scraping/index.html',
1923
title: 'web scraping'

app/components/navbar_component.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class NavBarStack extends HTMLElement {
111111

112112
links.forEach(({ title, tools }) => {
113113
const itemComponent = document.createElement('details')
114+
itemComponent.name = "tools"
114115
itemComponent.classList.add('menu-tool')
115116

116117
// title item
@@ -148,18 +149,6 @@ class NavBarStack extends HTMLElement {
148149
navbarComponent.append(headerComponent, listComponent)
149150

150151
shadowRoot.append(styles, navbarComponent)
151-
152-
const collapseList = shadowRoot.querySelectorAll('.menu-tool')
153-
154-
collapseList.forEach((collapse, i) => {
155-
collapse.addEventListener('click', () => {
156-
collapseList.forEach(item => {
157-
if(item !== collapse) {
158-
item.open = false
159-
}
160-
})
161-
})
162-
})
163152
}
164153
}
165154

app/crypto-market/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/>
2424
</fieldset>
2525

26-
<section id="coin-list" class="scroll crypto-list"></section>
26+
<section id="coin-list" class="crypto-list"></section>
2727
</main>
2828

2929
<script async src="renderer.js"></script>

app/crypto-market/main.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
.crypto-list {
22
height: 70vh;
3-
scrollbar-width: thin;
4-
scrollbar-color: #fff #000;
53
overflow: auto;
6-
}
4+
}

app/css-validator/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Css validator</title>
6+
<!-- normalize -->
7+
<link rel="stylesheet" href="../../node_modules/normalize.css/normalize.css" />
8+
<!-- scrollbar css -->
9+
<link rel="stylesheet" href="../styles/global.css" />
10+
<!-- local css -->
11+
<link rel="stylesheet" href="main.css" />
12+
</head>
13+
<body>
14+
<navbar-stack></navbar-stack>
15+
<main class="container">
16+
<section class="app-glass">
17+
<fieldset class="input-field">
18+
<input
19+
type="url"
20+
id="website"
21+
class="input-field-text"
22+
placeholder="enter a url to validate"
23+
>
24+
</fieldset>
25+
26+
<fieldset class="input-field">
27+
<button id="css-validate" class="btn-submit full-btn">
28+
validate
29+
</button>
30+
</fieldset>
31+
</section>
32+
33+
<pre id="css-results" class="app-glass results-validator"></pre>
34+
<div class="warn">some websites is slow charge</div>
35+
</main>
36+
37+
<script async src="renderer.js"></script>
38+
</body>
39+
</html>

app/css-validator/main.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.warn, .error {
2+
height: auto;
3+
backdrop-filter: blur(8px);
4+
margin: 8px;
5+
padding: 4px;
6+
}
7+
8+
.results-validator {
9+
overflow: auto;
10+
height: 60vh;
11+
margin-top: 8px;
12+
}
13+
14+
.validate-opts {
15+
display: flex;
16+
justify-content: space-between;
17+
}
18+
19+
.validate-opt {
20+
cursor: pointer;
21+
}
22+
23+
.warn {
24+
background-color: rgb(255 255 0 / 0.35);
25+
}
26+
27+
.error {
28+
background-color: rgb(255 0 0 / 0.35);
29+
}
30+
31+
.css-select {
32+
border: none;
33+
outline: none;
34+
font: inherit;
35+
width: 100%;
36+
cursor: pointer;
37+
color: #fff;
38+
border-radius: 0.25rem;
39+
box-shadow: 0 0 1rem 0 rgb(0 0 0 / 0.2);
40+
background: rgb(0 0 0 / 0.5);
41+
padding: .7em;
42+
}
43+
44+
.css-select:focus {
45+
outline: none;
46+
}
47+
48+
.css-select:-internal-list-box {
49+
display: flex;
50+
white-space: wrap;
51+
}

app/css-validator/renderer.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// modules
2+
const { ipcRenderer } = require('electron')
3+
const validateCss = require('css-validator')
4+
const { webRegexp } = require('../scripts/regex')
5+
const toast = require('../scripts/toast')
6+
7+
// DOM elements
8+
const url = document.querySelector('#website')
9+
const btnSubmit = document.querySelector('#css-validate')
10+
const results = document.querySelector('#css-results')
11+
12+
const cssValidate = () => {
13+
validateCss({uri: url.value}, (err, data) => {
14+
if (err) { toast(err.message) } else {
15+
results.textContent = JSON.stringify(data, null, 2)
16+
}
17+
})
18+
19+
url.value = ''
20+
}
21+
22+
// events
23+
btnSubmit.addEventListener('click', () => {
24+
!webRegexp.test(url.value)
25+
? toast('https:// or https:// is required')
26+
: cssValidate()
27+
})
28+
29+
ipcRenderer.on('clear-stack', () => (results.textContent = ''))

app/hardware-information/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<body>
1616
<navbar-stack></navbar-stack>
1717

18-
<main class="container scroll">
18+
<main class="container">
1919
<cpu-info></cpu-info>
2020

2121
<ram-info></ram-info>

0 commit comments

Comments
 (0)