-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
16 changed files
with
125 additions
and
24 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
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
70 changes: 70 additions & 0 deletions
70
packages/renderer/src/components/Task/configurations/ReclamationAlgorithm.vue
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<script setup lang="ts"> | ||
import { NButton, NCheckbox, NFormItem, NSelect } from 'naive-ui' | ||
import { inject, ref } from 'vue' | ||
import type { GetConfig } from './types' | ||
const showModal = ref(false) | ||
type RAConfig = GetConfig<'ReclamationAlgorithm'> | ||
const props = defineProps<{ | ||
configurations: RAConfig | ||
taskIndex: number | ||
}>() | ||
const updateTaskConfigurations = inject('update:configuration') as ( | ||
key: string, | ||
value: any, | ||
index: number | ||
) => void | ||
const configurationDisabled = inject('configurationDisabled') as { | ||
re: boolean | ||
nre: boolean | ||
} | ||
function handleUpdateConfiguration(key: string, value: any) { | ||
updateTaskConfigurations(key, value, props.taskIndex) | ||
} | ||
const modeOptions = [ | ||
{ | ||
label: '刷分与建造点,进入战斗直接退出', | ||
value: 0, | ||
}, | ||
{ | ||
label: '刷赤金,联络员买水后基地锻造', | ||
value: 1, | ||
}, | ||
] | ||
</script> | ||
|
||
<template> | ||
<div class="configuration-form"> | ||
<NFormItem | ||
label="模式" | ||
size="small" | ||
label-align="left" | ||
label-placement="left" | ||
:show-feedback="false" | ||
> | ||
<NSelect | ||
:disabled="configurationDisabled.re" | ||
:value="props.configurations.mode" | ||
:options="modeOptions" | ||
@update:value="value => handleUpdateConfiguration('mode', value)" | ||
/> | ||
</NFormItem> | ||
</div> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
.mall-configuration { | ||
text-align: left; | ||
} | ||
.item-group { | ||
display: flex; | ||
align-items: center; | ||
} | ||
</style> |
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
3 changes: 3 additions & 0 deletions
3
packages/renderer/src/components/Task/results/ReclamationAlgorithm.vue
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<div>Shutdown Task Progress</div> | ||
</template> |
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 |
---|---|---|
|
@@ -82,4 +82,5 @@ export interface NativeDevice { | |
adbPath?: string | ||
tag?: string | ||
commandLine?: string | ||
config?: EmulatorName | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type ReclamationAlgorithmType = 0 | 1 | ||
// 模式,可选项。默认 0 | ||
// 0 - 刷分与建造点,进入战斗直接退出 | ||
// 1 - 刷赤金,联络员买水后基地锻造 |
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