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
/* Extension to the Kagi CSS */ | |
/* https://kagi.com/settings?p=custom_css */ | |
/* based on https://gist.github.com/joshellington/51765a15d8f780089619b638fc6aea6b */ | |
/* Unique part */ | |
.logo svg, .app-logo, .doggo_sit_a, .footer { display: none } | |
.m-h .m-app-logo { display: none } | |
.top_nav_links, #accountContainer .header_links { display: none } |
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
/* Extension to the Kagi CSS */ | |
/* https://gist.github.com/joshellington/51765a15d8f780089619b638fc6aea6b */ | |
.logo svg, .app-logo, .doggo_sit_a, .footer { display: none } | |
.m-h .m-app-logo { display: none } | |
.top_nav_links, #accountContainer .header_links { display: none } | |
.search-form .search-submit-wrapper .search-submit-wrapper-inner { display: none } |
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
patches: | |
- target: | |
kind: Kustomization | |
group: kustomize.toolkit.fluxcd.io | |
patch: |- | |
- op: add | |
path: /spec/postBuild | |
value: | |
substituteFrom: | |
- kind: ConfigMap |
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
import 'dart:async'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:l/l.dart' as logging; | |
/// Logger instance | |
final Logger logger = AppLogger$L(); | |
/// Possible levels of logging | |
enum LogLevel implements Comparable<LogLevel> { |
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
admin: | |
access_log_path: /tmp/admin_access.log | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- name: listener_0 | |
address: |
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
// Compose app version by adding build_number and environment type | |
final versionJsonFile = File(versionJsonPath); | |
final versionJson = jsonDecode(await versionJsonFile.readAsString()); | |
final appVersion = '${versionJson['version']}b${versionJson['build_number']}${appEnvironment[0]}'.trim(); | |
// Save environment json file | |
final envFile = File(envJsonPath); | |
final envFileContent = const JsonEncoder.withIndent(' ').convert(envJson); | |
final envFileMd5 = md5.convert(utf8.encode(envFileContent)).toString(); | |
await envFile.writeAsString(envFileContent); |
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
{ | |
"app_environment": "production", | |
"api_endpoint": "api.app.domain", | |
"api_port": 8080 | |
} |
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
#!/bin/sh | |
/app/bin/prepare-app-to-start app_environment=$APP_ENVIRONMENT app_version=$APP_VERSION | |
# Exec the CMD from the Dockerfile | |
exec "$@" |
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
FROM nginx:alpine as production | |
COPY --from=build_dart /runtime/ / | |
COPY --from=build_dart /app/tool/prepare-app-to-start /app/bin/ | |
COPY --from=build_dart --chmod=0755 /app/tool/entrypoint.sh /app/bin/ | |
COPY --from=build_web /home/build/web /usr/share/nginx/html | |
EXPOSE 80/tcp | |
ENTRYPOINT ["/app/bin/entrypoint.sh"] | |
CMD ["nginx", "-g", "daemon off;"] |
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
// Path to the web root | |
const webRoot = '/usr/share/nginx/html'; | |
// Locations of the Web application files we are going to update | |
const indexHtmlPath = '$webRoot/index.html'; | |
const flutterJsPath = '$webRoot/flutter.js'; | |
const versionJsonPath = '$webRoot/version.json'; | |
// Compose app version by adding build_number | |
final versionJsonFile = File(versionJsonPath); | |
final versionJson = jsonDecode(await versionJsonFile.readAsString()); |
NewerOlder