Skip to content

Commit

Permalink
fixed type checking I HOPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny committed Apr 1, 2022
1 parent bf36f04 commit 73d282d
Show file tree
Hide file tree
Showing 21 changed files with 163 additions and 1,113 deletions.
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

38 changes: 0 additions & 38 deletions src/aws-exports.js

This file was deleted.

38 changes: 38 additions & 0 deletions src/aws-exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/* eslint-disable */
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.

const awsmobile = {
aws_project_region: 'us-east-1',
aws_appsync_graphqlEndpoint:
'https://hmhcmquzenfaxpearfzp3f3dlu.appsync-api.us-east-1.amazonaws.com/graphql',
aws_appsync_region: 'us-east-1',
aws_appsync_authenticationType: 'API_KEY',
aws_appsync_apiKey: 'da2-nmaqhbb62zabjhctesiydgfuvu',
aws_cloud_logic_custom: [
{
name: 'createpatreonsnowflake',
endpoint: 'https://1eh3faw192.execute-api.us-east-1.amazonaws.com/prod',
region: 'us-east-1',
},
],
aws_cognito_identity_pool_id: 'us-east-1:61808e08-a277-4e9c-b291-f40de3f94ef7',
aws_cognito_region: 'us-east-1',
aws_user_pools_id: 'us-east-1_AdX2iSx8s',
aws_user_pools_web_client_id: '5v4pvpbr6mbcgfj0cll14trpkk',
oauth: {},
aws_user_files_s3_bucket: 'cc-user-storageprod-prod',
aws_user_files_s3_bucket_region: 'us-east-1',
aws_dynamodb_all_tables_region: 'us-east-1',
aws_dynamodb_table_schemas: [
{
tableName: 'patreonsnowflakes-prod',
region: 'us-east-1',
},
{
tableName: 'userpatreontokens-prod',
region: 'us-east-1',
},
],
}

export { awsmobile }
74 changes: 0 additions & 74 deletions src/features/encounters/mission/runner/PilotSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,70 +64,11 @@
</v-row>
</v-card-text>
</v-card>
<v-divider class="my-3" />
<v-progress-linear v-if="cloudLoading" indeterminate size="22" />
<v-alert v-model="error" text prominent dismissible type="error" icon="mdi-cloud-alert">
{{ errorText }}
</v-alert>
<v-row dense>
<v-col class="mx-2">
<v-text-field
v-model="importID"
label="Pilot Cloud Share ID"
outlined
hide-details
color="primary"
append-outer-icon="mdi-cloud-search"
@click:append-outer="cloudImport()"
@keyup.enter="cloudImport()"
/>
<v-btn
x-large
block
tile
color="primary"
class="my-1"
:disabled="!importPilot || !importPilot.ActiveMech"
@click="selectImport()"
>
<span v-if="importPilot">
Import
<b>{{ importPilot.Name }}</b>
</span>
<span v-else>No Cloud Save Loaded</span>
</v-btn>
<span v-if="importPilot && !importPilot.ActiveMech">
Imported Pilot has no active mech selected. Unable to assign to mission.
</span>
</v-col>
<v-col class="mx-2">
<v-file-input counter label="Pilot Save File" outlined hide-details @change="fileImport" />
<v-btn
x-large
block
tile
color="primary"
class="my-1"
:disabled="!filePilot || !filePilot.ActiveMech"
@click="selectImport()"
>
<span v-if="filePilot">
Import
<b>{{ filePilot.Name }}</b>
</span>
<span v-else>No File Save Loaded</span>
</v-btn>
<span v-if="filePilot && !filePilot.ActiveMech">
Imported Pilot has no active mech selected. Unable to assign to mission.
</span>
</v-col>
</v-row>
</v-container>
</template>

<script lang="ts">
import Vue from 'vue'
import gistApi from '@/io/apis/gist'
import { getModule } from 'vuex-module-decorators'
import { PilotManagementStore } from '@/store'
import { Pilot } from '@/class'
Expand All @@ -146,7 +87,6 @@ export default Vue.extend({
importID: '',
importPilot: null,
filePilot: null,
cloudLoading: false,
error: false,
errorText: '',
}),
Expand All @@ -157,20 +97,6 @@ export default Vue.extend({
},
},
methods: {
async cloudImport() {
this.dialog = true
this.cloudLoading = true
try {
const pilotData = await gistApi.loadPilot(this.importID)
this.importPilot = Pilot.Deserialize(pilotData)
this.importPilot.RenewID()
this.cloudLoading = false
} catch (error) {
this.error = true
this.errorText = error
this.cloudLoading = false
}
},
selectImport() {
this.$emit('select', this.importPilot)
this.importPilot = null
Expand Down
Loading

0 comments on commit 73d282d

Please sign in to comment.