Compare commits
No commits in common. "7a757248c7488be13b631b5a0b4a491a4b337fe8" and "670fb7e0a6f035afc48fc263e1b59a9ebf9d62ea" have entirely different histories.
7a757248c7
...
670fb7e0a6
@ -1,6 +1,8 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:oauth2/oauth2.dart' as oauth2;
|
import 'package:oauth2/oauth2.dart' as oauth2;
|
||||||
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
Future<String> getSessionCookie(oauth2.Client client) async {
|
Future<String> getSessionCookie(oauth2.Client client) async {
|
||||||
final response0 = await client.get(
|
final response0 = await client.get(
|
||||||
|
@ -31,6 +31,22 @@ void main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void makeAlert(BuildContext context, String title, String message) {
|
||||||
|
showDialog<String>(
|
||||||
|
context: context,
|
||||||
|
builder: (BuildContext context) => AlertDialog(
|
||||||
|
title: Text(title),
|
||||||
|
content: Text(message),
|
||||||
|
actions: <Widget>[
|
||||||
|
TextButton(
|
||||||
|
onPressed: () => Navigator.pop(context, 'OK'),
|
||||||
|
child: const Text('OK'),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
Future<OpenSSHEd25519KeyPair> generateKeyPair() async {
|
Future<OpenSSHEd25519KeyPair> generateKeyPair() async {
|
||||||
final algorithm = Ed25519();
|
final algorithm = Ed25519();
|
||||||
|
|
||||||
@ -177,6 +193,10 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final String outputText = _output.isNotEmpty
|
||||||
|
? 'Output: $_output'
|
||||||
|
: 'Press the button to run a command.';
|
||||||
|
|
||||||
final authentikApiState = context
|
final authentikApiState = context
|
||||||
.watch<AuthentikUserSettingsChangeDialogState>();
|
.watch<AuthentikUserSettingsChangeDialogState>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user