begin cli args
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
|
||||
import { Component, ViewChild, ElementRef, AfterViewInit, OnInit } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { getMatches } from '@tauri-apps/plugin-cli';
|
||||
import { QwertyKeyboardComponent } from './keyboards/qwerty-keyboard.component';
|
||||
import { DvorakKeyboardComponent } from './keyboards/dvorak-keyboard.component';
|
||||
import { CircleKeyboardComponent } from './keyboards/circle-keyboard.component';
|
||||
@@ -17,9 +18,13 @@ import { CircleKeyboardComponent } from './keyboards/circle-keyboard.component';
|
||||
CircleKeyboardComponent
|
||||
],
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.css'
|
||||
styleUrl: './app.component.css',
|
||||
})
|
||||
export class AppComponent {
|
||||
export class AppComponent implements OnInit {
|
||||
async ngOnInit() {
|
||||
const matches = await getMatches();
|
||||
console.log(matches);
|
||||
}
|
||||
greetingMessage = "";
|
||||
currentLayout: 'qwerty' | 'dvorak' | 'circle' = 'qwerty';
|
||||
shiftActive = false;
|
||||
|
||||
Reference in New Issue
Block a user