Skip to content

Commit

Permalink
🔥 remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
轩帅 authored and 轩帅 committed Aug 31, 2022
1 parent fb2804c commit 1857eeb
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 22 deletions.
8 changes: 8 additions & 0 deletions src/assets/scss/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,12 @@
text-align: left;
font-weight: 500;
margin-top: 3rem;
}

.text-ellipsis {
display: block;
overflow: hidden;
white-space: nowrap;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
}
30 changes: 28 additions & 2 deletions src/components/Waline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
}
</script>

<style lang="scss" scoped>
<style lang="scss">
.nice-comment {
padding: 0 20px;
}
Expand All @@ -38,7 +38,33 @@ export default {
width: 100%;
min-width: 30rem;
padding: 15px 0;
aspect-ratio: 2 / 1;
aspect-ratio: 3 / 2;
.wl-comment {
.wl-panel {
.wl-header {
label,
input {
font-size: 1.4rem;
}
}
.wl-editor {
font-size: 1.4rem;
}
}
}
.wl-btn,
.wl-text-number,
.wl-nick,
.wl-time,
.wl-content,
.wl-count,
.wl-empty {
font-size: 1.4rem;
}
.vbtn {
display: none;
Expand Down
9 changes: 6 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ import router from './router'
import store from './store/'

const version = require('../package.json').version
console.log(
`倾城之链:“倾心缔造,痴心为你”,您当前运行的版本为:%c${version}`,
'font-weight: 600;color: #20a0ff'
const log = console.info
log(
`%c 倾城之链%c:“倾心缔造,痴心为你”,您当前运行的版本为:%c ${version}`,
'font-weight: 600;color: #ff6768',
'color: #17223b',
'color: #20a0ff'
)

const isProductionFlag = process.env.NODE_ENV === 'production'
Expand Down
8 changes: 1 addition & 7 deletions src/mixins/metaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export default {
}
},

created() {},

metaInfo() {
const titleContent = this.title ? `${this.title} - ${this.siteTitle}` : `${this.siteTitle}`
return {
Expand All @@ -34,9 +32,5 @@ export default {
{ vmid: 'og:description', property: 'og:description', content: this.description },
],
}
},

mounted() {},

methods: {},
}
}
12 changes: 2 additions & 10 deletions src/mixins/pageMixin.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
export default {
data() {
return {}
},

computed: {},

created() {},

mounted() {
this.sendGtagEventTracking()
},
Expand All @@ -24,7 +16,7 @@ export default {

if (gtagAction && gtagCategory && gtagLabel) {
elem.onclick = () => {
const gtag = window.gtag || (() => {})
const gtag = window.gtag || (() => { })
gtag('event', gtagAction, {
event_category: gtagCategory,
event_label: gtagLabel,
Expand All @@ -34,7 +26,7 @@ export default {
}

const gtagTrackList = document.querySelectorAll('.gtag-track')
;[].forEach.call(gtagTrackList, bindEventListener, false)
;[].forEach.call(gtagTrackList, bindEventListener, false)
},
},
}

0 comments on commit 1857eeb

Please sign in to comment.