Skip to content

Commit e522186

Browse files
committed
chore: updated misc files
1 parent 661e074 commit e522186

File tree

20 files changed

+98
-54
lines changed

20 files changed

+98
-54
lines changed

demo/public/404.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
7+
<title>404 Redirect</title>
8+
9+
<script>
10+
sessionStorage.redirect = location.href;
11+
</script>
12+
13+
<meta http-equiv="refresh" content="0;URL='/quasar-ui-qiconpicker'"></meta>
14+
</head>
15+
16+
<body>
17+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
18+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
19+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
20+
</body>
21+
22+
23+
</html>
-145 Bytes
Loading
-838 Bytes
Loading
-3.29 KB
Loading

demo/quasar.conf.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = function (/* ctx */) {
2121
// --> boot files are part of "main.js"
2222
// https://quasar.dev/quasar-cli/boot-files
2323
boot: [
24-
'components',
2524
'qiconpicker'
2625
],
2726

demo/src/assets/page-utils.js

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
export function copyHeading (id) {
2-
const text = window.location.origin + window.location.pathname + '#' + id
3-
4-
var textArea = document.createElement('textarea')
1+
export function copyToClipboard (text) {
2+
const textArea = document.createElement('textarea')
53
textArea.className = 'fixed-top'
64
textArea.value = text
75
document.body.appendChild(textArea)
@@ -10,6 +8,25 @@ export function copyHeading (id) {
108

119
document.execCommand('copy')
1210
document.body.removeChild(textArea)
11+
}
12+
13+
export function copyHeading (id) {
14+
const text = window.location.origin + window.location.pathname + '#' + id
15+
const el = document.getElementById(id)
16+
17+
if (el) {
18+
el.id = ''
19+
}
20+
21+
window.location.hash = '#' + id
22+
23+
if (el) {
24+
setTimeout(() => {
25+
el.id = id
26+
}, 300)
27+
}
28+
29+
copyToClipboard(text)
1330

1431
this.$q.notify({
1532
message: 'Anchor has been copied to clipboard.',

demo/src/boot/components.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

demo/src/components/EssentialLinks.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<q-list>
2+
<q-list class="menu">
33
<q-item clickable to="/docs">
44
<q-item-section avatar>
55
<q-icon name="bolt" />
@@ -39,7 +39,7 @@
3939
<q-separator />
4040
<q-item clickable tag="a" target="_blank" href="https://github.com/quasarframework/quasar-ui-qiconpicker">
4141
<q-item-section avatar>
42-
<q-icon name="extension" />
42+
<q-icon name="home" />
4343
</q-item-section>
4444
<q-item-section>
4545
<q-item-label>QIconPicker home</q-item-label>
@@ -123,6 +123,3 @@ export default {
123123
}
124124
}
125125
</script>
126-
127-
<style>
128-
</style>

demo/src/components/Hero.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<q-btn type="a" :href="donateUrl" target="_blank" class="btn" label="Donate" no-caps flat/>
1212
<div class="row justify-evenly items-center q-ma-sm">
1313
<div class="quasar">{{ quasarDesc }}</div>
14-
<div class="byline">{{ byline }}<a :href="bylineTwitter" target="_blank" title="Twitter"><i class="fab fa-twitter"></i></a></div>
14+
<div class="byline">{{ byline }} <a :href="bylineTwitter" target="_blank" title="Twitter"><i class="fab fa-twitter"></i></a></div>
1515
</div>
1616
</section>
1717
<main class="flex flex-start justify-center inset-shadow">
@@ -30,7 +30,7 @@ export default {
3030
data () {
3131
return {
3232
title: 'QIconPicker',
33-
tagline: 'Icon picker for your Quasar apps',
33+
tagline: 'Icon picker for your Quasar App',
3434
byline: 'Created and maintained by Jeff Galbraith',
3535
bylineTwitter: 'https://twitter.com/jgalbraith64',
3636
quasarDesc: 'A Quasar Framework Component and App Extension',

demo/src/css/app.sass

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $bgColor: #155799
1616
margin-bottom: 1px
1717

1818
.menu .q-item
19-
border-radius: 0 10px 10px
19+
border-radius: 0 10px 10px 0
2020
margin-top: 1px
2121
margin-bottom: 1px
2222

@@ -43,13 +43,6 @@ $bgColor: #155799
4343
&:hover:after
4444
opacity: 1
4545

46-
.example-page
47-
padding: 16px 46px
48-
font-weight: 300
49-
max-width: 900px
50-
margin-left: auto
51-
margin-right: auto
52-
5346
body
5447
padding: 0
5548
margin: 0
@@ -61,8 +54,8 @@ body
6154
a
6255
color: #1e6bb8
6356
text-decoration: none
64-
&:hover
65-
text-decoration: underline
57+
// &:hover
58+
// text-decoration: underline
6659
6760
.body--dark
6861
a
@@ -89,7 +82,7 @@ a
8982
margin-left: 1rem
9083

9184
.project-name
92-
font-weight 700
85+
font-weight: 700
9386

9487
@media screen and (min-width: 42em) and (max-width: 64em)
9588
.btn
@@ -104,7 +97,7 @@ a
10497
margin-left: 0
10598
.byline
10699
left: 0
107-
align-text center
100+
align-text: center
108101

109102
.page-header
110103
position: relative
@@ -133,17 +126,17 @@ a
133126
@media screen and (min-width: 64em)
134127
.project-name
135128
font-size: 4.25rem
136-
line-height: unset;
129+
line-height: unset
137130

138131
@media screen and (min-width: 42em) and (max-width: 64em)
139132
.project-name
140133
font-size: 3.25rem
141-
line-height: unset;
134+
line-height: unset
142135

143136
@media screen and (max-width: 42em)
144137
.project-name
145138
font-size: 2.75rem
146-
line-height: unset;
139+
line-height: unset
147140

148141
.project-tagline
149142
font-weight: normal
@@ -152,17 +145,17 @@ a
152145
@media screen and (min-width: 64em)
153146
.project-tagline
154147
font-size: 1.75rem
155-
line-height: unset;
148+
line-height: unset
156149

157150
@media screen and (min-width: 42em) and (max-width: 64em)
158151
.project-tagline
159152
font-size: 1.25rem
160-
line-height: unset;
153+
line-height: unset
161154

162155
@media screen and (max-width: 42em)
163156
.project-tagline
164157
font-size: 1rem
165-
line-height: unset;
158+
line-height: unset
166159

167160
.main-content :first-child
168161
margin-top: 0

0 commit comments

Comments
 (0)