diff --git a/src/ZonyLrcTools.Cli/Commands/SubCommand/SearchCommand.cs b/src/ZonyLrcTools.Cli/Commands/SubCommand/SearchCommand.cs new file mode 100644 index 0000000..77fdcb8 --- /dev/null +++ b/src/ZonyLrcTools.Cli/Commands/SubCommand/SearchCommand.cs @@ -0,0 +1,29 @@ +using System.Threading.Tasks; +using McMaster.Extensions.CommandLineUtils; +using Microsoft.Extensions.Logging; + +namespace ZonyLrcTools.Cli.Commands.SubCommand; + +[Command("search", Description = "手动指定信息,用于搜索歌词数据。")] +public class SearchCommand : ToolCommandBase +{ + private readonly ILogger _logger; + + #region > Options < + + public string Name { get; set; } + + public string Artist { get; set; } + + #endregion + + public SearchCommand(ILogger logger) + { + _logger = logger; + } + + protected override Task OnExecuteAsync(CommandLineApplication app) + { + return base.OnExecuteAsync(app); + } +} \ No newline at end of file diff --git a/src/ui/src/App.vue b/src/ui/src/App.vue index d59bf87..a319e79 100644 --- a/src/ui/src/App.vue +++ b/src/ui/src/App.vue @@ -9,13 +9,7 @@ color="grey lighten-4" class="pa-4" > - - -
john@vuetifyjs.com
+
ZonyLrcTools-X
diff --git a/src/ui/src/components/HelloWorld.vue b/src/ui/src/components/HelloWorld.vue deleted file mode 100644 index 8e95071..0000000 --- a/src/ui/src/components/HelloWorld.vue +++ /dev/null @@ -1,151 +0,0 @@ - - - diff --git a/src/ui/src/views/HomeView.vue b/src/ui/src/views/HomeView.vue index cdf3a46..cd99c38 100644 --- a/src/ui/src/views/HomeView.vue +++ b/src/ui/src/views/HomeView.vue @@ -1,6 +1,29 @@ @@ -8,5 +31,40 @@ export default { name: 'Home', + data() { + return { + headers: [ + { + text: '文件名', + align: 'start', + sortable: false, + value: 'name', + }, + {text: '大小', value: 'size'}, + {text: '状态', value: 'status'}, + {text: '操作', value: 'action'}, + ], + items: [ + { + name: 'Frozen Yogurt', + size: 159, + status: 'success', + action: 4.0, + }, + { + name: 'Ice cream sandwich', + size: 237, + status: 'error', + action: 4.3, + }, + ], + } + }, + methods: { + openDir() { + + } + }, + computed: {} } diff --git a/src/ui/src/views/SettingView.vue b/src/ui/src/views/SettingView.vue index 786ef44..5b69a32 100644 --- a/src/ui/src/views/SettingView.vue +++ b/src/ui/src/views/SettingView.vue @@ -1,11 +1,132 @@ \ No newline at end of file