diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/state/env.ts | 28 | ||||
-rw-r--r-- | src/state/models/session.ts | 10 |
2 files changed, 17 insertions, 21 deletions
diff --git a/src/state/env.ts b/src/state/env.ts index 0ee59788c..a9e9bf244 100644 --- a/src/state/env.ts +++ b/src/state/env.ts @@ -140,14 +140,12 @@ export async function generateMockData() { reply: {root: alicePosts[0].uri, parent: alicePosts[0].uri}, createdAt: date.next().value, }) - const carlaReply1 = await carla - .collection('blueskyweb.xyz:Posts') - .create('Post', { - $type: 'blueskyweb.xyz:Post', - text: 'Carla reply', - reply: {root: alicePosts[0].uri, parent: alicePosts[0].uri}, - createdAt: date.next().value, - }) + await carla.collection('blueskyweb.xyz:Posts').create('Post', { + $type: 'blueskyweb.xyz:Post', + text: 'Carla reply', + reply: {root: alicePosts[0].uri, parent: alicePosts[0].uri}, + createdAt: date.next().value, + }) const aliceReply1 = await alice .collection('blueskyweb.xyz:Posts') .create('Post', { @@ -222,14 +220,12 @@ export async function generateMockData() { assertion: {type: 'tag', tag: 'tech'}, createdAt: date.next().value, }) - const employeeBadge = await bob - .collection('blueskyweb.xyz:Badges') - .create('Badge', { - $type: 'blueskyweb.xyz:Badge', - subject: {did: alice.did, name: 'alice.com'}, - assertion: {type: 'employee'}, - createdAt: date.next().value, - }) + await bob.collection('blueskyweb.xyz:Badges').create('Badge', { + $type: 'blueskyweb.xyz:Badge', + subject: {did: alice.did, name: 'alice.com'}, + assertion: {type: 'employee'}, + createdAt: date.next().value, + }) await alice.collection('blueskyweb.xyz:Profiles').put('Profile', 'profile', { $type: 'blueskyweb.xyz:Profile', displayName: 'Alice', diff --git a/src/state/models/session.ts b/src/state/models/session.ts index 3b52b8fc6..1a3fbad34 100644 --- a/src/state/models/session.ts +++ b/src/state/models/session.ts @@ -1,6 +1,6 @@ import {Instance, SnapshotOut, types, flow} from 'mobx-state-tree' // import {UserConfig} from '../../api' -import * as auth from '../lib/auth' +// import * as auth from '../lib/auth' import {withEnvironment} from '../env' export const SessionModel = types @@ -21,7 +21,7 @@ export const SessionModel = types self.isAuthed = v }, login: flow(function* () { - self.uiIsProcessing = true + /*self.uiIsProcessing = true self.uiError = undefined try { if (!self.env.authStore) { @@ -36,10 +36,10 @@ export const SessionModel = types self.uiError = e.toString() self.uiIsProcessing = false return false - } + }*/ }), logout: flow(function* () { - self.uiIsProcessing = true + /*self.uiIsProcessing = true self.uiError = undefined try { if (!self.env.authStore) { @@ -54,7 +54,7 @@ export const SessionModel = types self.uiError = e.toString() self.uiIsProcessing = false return false - } + }*/ }), /*loadAccount: flow(function* () { self.uiIsProcessing = true |