-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' to release [1.1.0]
- Loading branch information
Showing
13 changed files
with
1,575 additions
and
2,738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule umi
updated
3 files
+8 −4 | CHANGELOG.md | |
+11 −0 | samples/Prime/rejection-new.md | |
+7 −2 | umi.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
import { Store } from 'vuex' | ||
|
||
import type { State } from '@/store/state'; | ||
import { util } from '@/service/utils'; | ||
import AuthKit from './auth'; | ||
import GoogleDriveKit from './drive'; | ||
|
||
type BasicCallback = () => void; | ||
|
||
export default class GoogleKit { | ||
export namespace google { | ||
|
||
auth = new AuthKit(); | ||
drive = new GoogleDriveKit(); | ||
export const auth = new AuthKit(); | ||
export const drive = new GoogleDriveKit(); | ||
|
||
init(callback: BasicCallback) { | ||
util.loadScript('https://apis.google.com/js/api.js') | ||
.then(() => { | ||
callback(); | ||
}); | ||
export async function init(store: Store<State>) { | ||
await util.loadScript('https://apis.google.com/js/api.js'); | ||
auth.events.authStatusChanged = (authed) => { | ||
store.commit('google/setAuthed', authed); | ||
store.commit('google/loaded'); | ||
}; | ||
auth.init(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.