Begin to do some updates
This commit is contained in:
parent
0462b39784
commit
dd01f82fac
7 changed files with 21 additions and 10 deletions
|
@ -31,4 +31,6 @@ RUN chown -R bugvault:bugvault /data
|
||||||
USER bugvault:bugvault
|
USER bugvault:bugvault
|
||||||
ENV HOME=/data
|
ENV HOME=/data
|
||||||
|
|
||||||
|
VOLUME [ "/data" ]
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
Open Source GPL3 bug tracker. This bug tracker prioritizes ease of use.
|
Open Source GPL3 bug tracker. This bug tracker prioritizes ease of use.
|
||||||
|
|
||||||
|
**NOTE**: Bug Vault is hardcoded to interact with the instance of `bugvaultd` running at `localhost:7400`. If you want to change this, you will need to change the `host` and `port` values located in `lib/dart/bugvault.dart`.
|
||||||
|
|
||||||
# Compilation
|
# Compilation
|
||||||
|
|
||||||
## Linux
|
## Linux
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class Constants {
|
class Constants {
|
||||||
static const VERSION = "1.0.031525+0227";
|
static const VERSION = "1.0.062525+2043";
|
||||||
static const APP_NAME = "BugVault";
|
static const APP_NAME = "BugVault";
|
||||||
}
|
}
|
||||||
|
|
4
lib/dart/bugvault.dart
Normal file
4
lib/dart/bugvault.dart
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
class ServerCommunicatorConstants {
|
||||||
|
static const String host = "localhost";
|
||||||
|
static const int port = 7400;
|
||||||
|
}
|
|
@ -3,6 +3,7 @@ import 'dart:io';
|
||||||
|
|
||||||
import 'package:bugvault/FlutterConstants.dart';
|
import 'package:bugvault/FlutterConstants.dart';
|
||||||
import 'package:bugvault/SessionData.dart';
|
import 'package:bugvault/SessionData.dart';
|
||||||
|
import 'package:bugvault/dart/bugvault.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:libac_dart/nbt/NbtIo.dart';
|
import 'package:libac_dart/nbt/NbtIo.dart';
|
||||||
import 'package:libac_dart/nbt/impl/CompoundTag.dart';
|
import 'package:libac_dart/nbt/impl/CompoundTag.dart';
|
||||||
|
@ -56,9 +57,11 @@ class BugVaultLoadPageState extends State<BugVaultLoadPage> {
|
||||||
|
|
||||||
TextEditingController USERNAME_CONTROLLER = TextEditingController();
|
TextEditingController USERNAME_CONTROLLER = TextEditingController();
|
||||||
TextEditingController URL_CONTROLLER = TextEditingController(
|
TextEditingController URL_CONTROLLER = TextEditingController(
|
||||||
text: "bugs.zontreck.com",
|
text: "${ServerCommunicatorConstants.host}",
|
||||||
|
);
|
||||||
|
TextEditingController PORT_CONTROLLER = TextEditingController(
|
||||||
|
text: "${ServerCommunicatorConstants.port}",
|
||||||
);
|
);
|
||||||
TextEditingController PORT_CONTROLLER = TextEditingController(text: "8372");
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void didChangeDependencies() {
|
void didChangeDependencies() {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:bugvault/dart/bugvault.dart';
|
||||||
import 'package:bugvault/server/packets.dart';
|
import 'package:bugvault/server/packets.dart';
|
||||||
import 'package:bugvault/users/User.dart';
|
import 'package:bugvault/users/User.dart';
|
||||||
import 'package:libac_dart/nbt/NbtIo.dart';
|
import 'package:libac_dart/nbt/NbtIo.dart';
|
||||||
|
@ -9,12 +10,11 @@ import 'package:libac_dart/nbt/impl/ListTag.dart';
|
||||||
import 'package:libac_dart/packets/packets.dart';
|
import 'package:libac_dart/packets/packets.dart';
|
||||||
|
|
||||||
class BugVaultServer {
|
class BugVaultServer {
|
||||||
static int g_iPortNumber = 8372;
|
static int get g_iPortNumber => ServerCommunicatorConstants.port;
|
||||||
static bool g_bAllowAnonymousLogin = true;
|
static bool g_bAllowAnonymousLogin = true;
|
||||||
static List<DBUser> UserDB = List.empty();
|
static List<DBUser> UserDB = List.empty();
|
||||||
|
|
||||||
static Future<void> InstantiateSettings(CompoundTag ct) async {
|
static Future<void> InstantiateSettings(CompoundTag ct) async {
|
||||||
g_iPortNumber = ct.get("port")?.asInt() ?? 8372;
|
|
||||||
if (ct.containsKey("anonymous")) {
|
if (ct.containsKey("anonymous")) {
|
||||||
g_bAllowAnonymousLogin = NbtUtils.readBoolean(ct, "anonymous");
|
g_bAllowAnonymousLogin = NbtUtils.readBoolean(ct, "anonymous");
|
||||||
}
|
}
|
||||||
|
|
10
pubspec.yaml
10
pubspec.yaml
|
@ -1,5 +1,5 @@
|
||||||
name: bugvault
|
name: bugvault
|
||||||
description: "A new Flutter project."
|
description: "The Aria's Creations Bug Tracker"
|
||||||
# The following line prevents the package from being accidentally published to
|
# The following line prevents the package from being accidentally published to
|
||||||
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
||||||
publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||||
|
@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.031525+0227
|
version: 1.0.062525+2043
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.7.0
|
sdk: ^3.7.0
|
||||||
|
@ -36,10 +36,10 @@ dependencies:
|
||||||
cupertino_icons: ^1.0.8
|
cupertino_icons: ^1.0.8
|
||||||
libacflutter:
|
libacflutter:
|
||||||
hosted: https://git.zontreck.com/api/packages/Packages/pub/
|
hosted: https://git.zontreck.com/api/packages/Packages/pub/
|
||||||
version: 1.0.031525+0222
|
version: 1.0.052725+1354
|
||||||
libac_dart:
|
libac_dart:
|
||||||
hosted: https://git.zontreck.com/api/packages/Packages/pub/
|
hosted: https://git.zontreck.com/api/packages/Packages/pub/
|
||||||
version: 1.4.20325+1215
|
version: 1.4.052725+1339
|
||||||
base32: ^2.1.3
|
base32: ^2.1.3
|
||||||
totp: ^0.1.0
|
totp: ^0.1.0
|
||||||
hotp: ^0.1.0
|
hotp: ^0.1.0
|
||||||
|
@ -54,7 +54,7 @@ dev_dependencies:
|
||||||
# activated in the `analysis_options.yaml` file located at the root of your
|
# activated in the `analysis_options.yaml` file located at the root of your
|
||||||
# package. See that file for information about deactivating specific lint
|
# package. See that file for information about deactivating specific lint
|
||||||
# rules and activating additional ones.
|
# rules and activating additional ones.
|
||||||
flutter_lints: ^5.0.0
|
flutter_lints: ^6.0.0
|
||||||
|
|
||||||
# For information on the generic Dart part of this file, see the
|
# For information on the generic Dart part of this file, see the
|
||||||
# following page: https://dart.dev/tools/pub/pubspec
|
# following page: https://dart.dev/tools/pub/pubspec
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue