File tree Expand file tree Collapse file tree 1 file changed +86
-0
lines changed
src/renderer/components/model Expand file tree Collapse file tree 1 file changed +86
-0
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div v-show =" this.$store.state.workspace.model.about" class =" model--medium" >
3+ <div class =" about" >
4+ <div class =" about__header d-flex flex-column align-items-center" >
5+ <div class =" about__header__logo" >
6+ <thermalLogo />
7+ </div >
8+ <h6 >Thermal</h6 >
9+ <p class =" about__header__version" >
10+ Version {{ appVersion }}
11+ </p >
12+ </div >
13+ <div class =" about__content" >
14+ <p class =" about__content__para" >
15+ Thermal is an electron.js & vue.js based application using by which you can use Git with this application with a nice graphic user interface.
16+ </p >
17+ <p class =" about__content__para" >
18+ This application is copyright and build by Yashu Mittal.
19+ </p >
20+ </div >
21+ </div >
22+ <div class =" about__footer d-flex" >
23+ <outlineButton @click.native =" closeModel()" text =" Close" class =" about__footer__button ml-auto" />
24+ <primaryButton @click.native =" releaseNotes()" text =" Release Notes" class =" about__footer__button" />
25+ </div >
26+ </div >
27+ </template >
28+
29+ <script >
30+ import thermalLogo from " ../icon/logo"
31+ import packageJson from " ../../../../package.json"
32+ import primaryButton from " ../atoms/primaryButton"
33+ import outlineButton from " ../atoms/outlineButton"
34+ const { shell } = require (" electron" )
35+
36+ export default {
37+ name: " about" ,
38+ components: {
39+ thermalLogo,
40+ primaryButton,
41+ outlineButton
42+ },
43+ computed: {
44+ appVersion () {
45+ return packageJson .version
46+ }
47+ },
48+ methods: {
49+ releaseNotes () {
50+ shell .openExternal (" https://www.notion.so/gitthermal/Release-notes-7d77751a39484413b7ca8564b3f390a9#7d77751a39484413b7ca8564b3f390a9" )
51+ },
52+ closeModel () {
53+ this .$store .dispatch (" model/showModelPlaceholder" )
54+ this .$store .dispatch (" workspace/showAboutModel" )
55+ }
56+ }
57+ }
58+ </script >
59+
60+ <style lang='sass'>
61+ .about
62+
63+ & __header
64+ padding : .8rem 1rem
65+ border-bottom : 1px solid #eee
66+ width : 100%
67+
68+ & __version
69+ font-size : .8rem
70+
71+ & __content
72+ padding : .8rem 1rem
73+
74+ & __para
75+ margin-bottom : .5rem
76+
77+ & __footer
78+ width : 100%
79+ border-top : 1px solid #eee
80+ padding : .8rem 1rem
81+
82+ & __button
83+
84+ & :not (:first-child )
85+ margin-left : .5rem
86+ </style >
You can’t perform that action at this time.
0 commit comments