|
3 | 3 | <!--
|
4 | 4 | Slack Login Button:
|
5 | 5 | -->
|
6 |
| -<a href='https://slack.com/openid/connect/authorize?scope=openid%20profile&response_type=code&redirect_uri=https%3A%2F%2Flocalhost&client_id=2696943977700.2696948669268' style="align-items:center;color:#fff;background-color:#4A154B;border:0;border-radius:48px;display:inline-flex;font-family:Lato, sans-serif;font-size:16px;font-weight:600;height:48px;justify-content:center;text-decoration:none;width:256px"><svg xmlns="http://www.w3.org/2000/svg" style="height:20px;width:20px;margin-right:12px" viewBox="0 0 122.8 122.8"><path d="M25.8 77.6c0 7.1-5.8 12.9-12.9 12.9S0 84.7 0 77.6s5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V77.6z" fill="#e01e5a"></path><path d="M45.2 25.8c-7.1 0-12.9-5.8-12.9-12.9S38.1 0 45.2 0s12.9 5.8 12.9 12.9v12.9H45.2zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H12.9C5.8 58.1 0 52.3 0 45.2s5.8-12.9 12.9-12.9h32.3z" fill="#36c5f0"></path><path d="M97 45.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9-5.8 12.9-12.9 12.9H97V45.2zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V12.9C64.7 5.8 70.5 0 77.6 0s12.9 5.8 12.9 12.9v32.3z" fill="#2eb67d"></path><path d="M77.6 97c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9-12.9-5.8-12.9-12.9V97h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H77.6z" fill="#ecb22e"></path></svg>Sign in with Slack</a> |
| 6 | +<q-btn @click="slackOauth" class="slackBtn" > |
| 7 | + |
| 8 | + <svg xmlns="http://www.w3.org/2000/svg" style="height:20px;width:20px;margin-right:12px" viewBox="0 0 122.8 122.8"> |
| 9 | + <path d="M25.8 77.6c0 7.1-5.8 12.9-12.9 12.9S0 84.7 0 77.6s5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V77.6z" fill="#e01e5a"></path> |
| 10 | + <path d="M45.2 25.8c-7.1 0-12.9-5.8-12.9-12.9S38.1 0 45.2 0s12.9 5.8 12.9 12.9v12.9H45.2zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H12.9C5.8 58.1 0 52.3 0 45.2s5.8-12.9 12.9-12.9h32.3z" fill="#36c5f0"></path> |
| 11 | + <path d="M97 45.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9-5.8 12.9-12.9 12.9H97V45.2zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V12.9C64.7 5.8 70.5 0 77.6 0s12.9 5.8 12.9 12.9v32.3z" fill="#2eb67d"></path> |
| 12 | + <path d="M77.6 97c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9-12.9-5.8-12.9-12.9V97h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H77.6z" fill="#ecb22e"></path> |
| 13 | + </svg>Sign in with Slack |
| 14 | +</q-btn> |
7 | 15 | <!--
|
8 | 16 | Skip button:
|
9 | 17 | -->
|
10 | 18 | <br/>
|
11 |
| -<a href='/' style="align-items:center;display:inline-flex;font-family:Lato, sans-serif;font-size:14px;font-weight:600;height:36px;width:128px;text-decoration:none;justify-content:center">Skip</a> |
| 19 | +<q-btn @click="" class="skipBtn" >Skip</q-btn> |
12 | 20 | </div>
|
13 | 21 |
|
14 | 22 | </template>
|
15 | 23 |
|
16 | 24 | <script>
|
17 |
| -import { mapState, mapActions } from 'vuex' |
| 25 | +// import { mapState, mapActions } from 'vuex' |
| 26 | +import localforage from 'localforage' |
| 27 | +import { shell } from 'electron' |
| 28 | +import slackApiStuff from '../../../secretStuff/slackApiStuff.js' |
| 29 | +// const oauthURL = |
18 | 30 |
|
19 | 31 | export default {
|
20 |
| -
|
| 32 | + name: 'SlackLoginWindow', |
| 33 | + data () { |
| 34 | + return { |
| 35 | + oauthURL: slackApiStuff.oauthURL |
| 36 | + } |
| 37 | + }, |
| 38 | + methods: { |
| 39 | + slackOauth: function () { |
| 40 | + console.log('clicked') |
| 41 | + // shell.openExternal(this.oauthURL) |
| 42 | + window.open(this.oauthURL, '_blank') |
| 43 | + } |
| 44 | + } |
21 | 45 | }
|
22 | 46 | </script>
|
23 | 47 |
|
24 | 48 | <style>
|
25 | 49 |
|
| 50 | +.slackBtn { |
| 51 | + align-items:center; |
| 52 | + color:#fff; |
| 53 | + background-color:#4A154B; |
| 54 | + border:0; |
| 55 | + border-radius:48px; |
| 56 | + display:inline-flex; |
| 57 | + font-family:Lato, sans-serif; |
| 58 | + font-size:16px; |
| 59 | + font-weight:600; |
| 60 | + height:48px; |
| 61 | + justify-content:center; |
| 62 | + text-decoration:none; |
| 63 | + width:256px; |
| 64 | +} |
| 65 | +
|
| 66 | +.skipBtn { |
| 67 | + align-items:center; |
| 68 | + color:#000; |
| 69 | + display:inline-flex; |
| 70 | + font-family:Lato, sans-serif; |
| 71 | + font-size:14px; |
| 72 | + font-weight:600; |
| 73 | + height:36px; |
| 74 | + width:128px; |
| 75 | + text-decoration:none; |
| 76 | + justify-content:center; |
| 77 | +} |
| 78 | +
|
26 | 79 | </style>
|
0 commit comments