pull/4/head
UnnoTed 4 years ago
commit 49bb68c505
  1. 18
      .gitignore
  2. 21
      LICENSE
  3. 16
      README.md
  4. 169
      fileb0x.toml
  5. BIN
      flags/AD.png
  6. BIN
      flags/AE.png
  7. BIN
      flags/AF.png
  8. BIN
      flags/AG.png
  9. BIN
      flags/AI.png
  10. BIN
      flags/AL.png
  11. BIN
      flags/AM.png
  12. BIN
      flags/AO.png
  13. BIN
      flags/AR.png
  14. BIN
      flags/AS.png
  15. BIN
      flags/AT.png
  16. BIN
      flags/AU.png
  17. BIN
      flags/AW.png
  18. BIN
      flags/AX.png
  19. BIN
      flags/AZ.png
  20. BIN
      flags/BA.png
  21. BIN
      flags/BB.png
  22. BIN
      flags/BD.png
  23. BIN
      flags/BE.png
  24. BIN
      flags/BF.png
  25. BIN
      flags/BG.png
  26. BIN
      flags/BH.png
  27. BIN
      flags/BI.png
  28. BIN
      flags/BJ.png
  29. BIN
      flags/BL.png
  30. BIN
      flags/BM.png
  31. BIN
      flags/BN.png
  32. BIN
      flags/BO.png
  33. BIN
      flags/BQ.png
  34. BIN
      flags/BR.png
  35. BIN
      flags/BS.png
  36. BIN
      flags/BT.png
  37. BIN
      flags/BV.png
  38. BIN
      flags/BW.png
  39. BIN
      flags/BY.png
  40. BIN
      flags/BZ.png
  41. BIN
      flags/CA.png
  42. BIN
      flags/CC.png
  43. BIN
      flags/CD.png
  44. BIN
      flags/CF.png
  45. BIN
      flags/CG.png
  46. BIN
      flags/CH.png
  47. BIN
      flags/CI.png
  48. BIN
      flags/CK.png
  49. BIN
      flags/CL.png
  50. BIN
      flags/CM.png
  51. BIN
      flags/CN.png
  52. BIN
      flags/CO.png
  53. BIN
      flags/CR.png
  54. BIN
      flags/CU.png
  55. BIN
      flags/CV.png
  56. BIN
      flags/CW.png
  57. BIN
      flags/CX.png
  58. BIN
      flags/CY.png
  59. BIN
      flags/CZ.png
  60. BIN
      flags/DE.png
  61. BIN
      flags/DJ.png
  62. BIN
      flags/DK.png
  63. BIN
      flags/DM.png
  64. BIN
      flags/DO.png
  65. BIN
      flags/DZ.png
  66. BIN
      flags/EC.png
  67. BIN
      flags/EE.png
  68. BIN
      flags/EG.png
  69. BIN
      flags/ER.png
  70. BIN
      flags/ES.png
  71. BIN
      flags/ET.png
  72. BIN
      flags/FI.png
  73. BIN
      flags/FJ.png
  74. BIN
      flags/FK.png
  75. BIN
      flags/FM.png
  76. BIN
      flags/FO.png
  77. BIN
      flags/FR.png
  78. BIN
      flags/GA.png
  79. BIN
      flags/GB.png
  80. BIN
      flags/GD.png
  81. BIN
      flags/GE.png
  82. BIN
      flags/GF.png
  83. BIN
      flags/GG.png
  84. BIN
      flags/GH.png
  85. BIN
      flags/GI.png
  86. BIN
      flags/GL.png
  87. BIN
      flags/GM.png
  88. BIN
      flags/GN.png
  89. BIN
      flags/GP.png
  90. BIN
      flags/GQ.png
  91. BIN
      flags/GR.png
  92. BIN
      flags/GS.png
  93. BIN
      flags/GT.png
  94. BIN
      flags/GU.png
  95. BIN
      flags/GW.png
  96. BIN
      flags/GY.png
  97. BIN
      flags/HK.png
  98. BIN
      flags/HN.png
  99. BIN
      flags/HR.png
  100. BIN
      flags/HT.png
  101. Some files were not shown because too many files have changed in this diff Show More

18
.gitignore vendored

@ -0,0 +1,18 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
./wireguird
./wireguird.glade~

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 UnnoTed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,16 @@
# wireguird
unfinished, can connect and disconnect... only shows configs from /etc/wireguard/ (1 peer only), requires sudo (wg-quick and /etc/wireguard access), system tray icon goes red when connected, black when disconnected.
todo:
- optional vpn country flag icon in system tray
- log tab
- edit config
- add configs
- delete configs
- show errors
## preview (video)
![https://streamable.com/dpthpr](https://raw.githubusercontent.com/UnnoTed/wireguird/master/preview.jpg)

@ -0,0 +1,169 @@
# all folders and files are relative to the path
# where fileb0x was run at!
# default: main
pkg = "static"
# destination
dest = "./static/"
# gofmt
# type: bool
# default: false
fmt = true
# build tags for the main b0x.go file
tags = ""
# updater allows you to update a b0x in a running server
# without having to restart it
[updater]
# disabled by default
enabled = false
# empty mode creates a empty b0x file with just the
# server and the filesystem, then you'll have to upload
# the files later using the cmd:
# fileb0x -update=http://server.com:port b0x.toml
#
# it avoids long compile time
empty = false
# amount of uploads at the same time
workers = 3
# to get a username and password from a env variable
# leave username and password blank (username = "")
# then set your username and password in the env vars
# (no caps) -> fileb0x_username and fileb0x_password
username = "user"
password = "pass"
port = 8041
# compress files
# at the moment, only supports gzip
#
# type: object
[compression]
# activates the compression
#
# type: bool
# default: false
compress = false
# valid values are:
# -> "NoCompression"
# -> "BestSpeed"
# -> "BestCompression"
# -> "DefaultCompression" or ""
#
# type: string
# default: "DefaultCompression" // when: Compress == true && Method == ""
method = ""
# true = do it yourself (the file is written as gzip compressed file into the memory file system)
# false = decompress files at run time (while writing file into memory file system)
#
# type: bool
# default: false
keep = false
# ---------------
# -- DANGEROUS --
# ---------------
#
# cleans the destination folder (only b0xfiles)
# you should use this when using the spread function
# type: bool
# default: false
clean = false
# default: ab0x.go
output = "ab0x.go"
# [noprefix] disables adding "a" prefix to output
# type: bool
# default: false
noprefix = false
# [unexporTed] builds non-exporTed functions, variables and types...
# type: bool
# default: false
unexporTed = false
# [spread] means it will make a file to hold all fileb0x data
# and each file into a separaTed .go file
#
# example:
# theres 2 files in the folder assets, they're: hello.json and world.txt
# when spread is activaTed, fileb0x will make a file:
# b0x.go or [output]'s data, assets_hello.json.go and assets_world.txt.go
#
#
# type: bool
# default: false
spread = false
# [lcf] log changed files when spread is active
lcf = true
# [debug] is a debug mode where the files are read directly from the file
# sytem. Useful for web dev when files change when the server is running.
# type: bool
# default: false
debug = false
# type: array of objects
[[custom]]
# type: array of strings
files = ["./flags/*.png"]
# base is the path that will be removed from all files' path
# type: string
base = "./flags/"
# prefix is the path that will be added to all files' path
# type: string
prefix = ""
# build tags for this set of files
# it will only work if spread mode is enabled
tags = ""
# end: custom
# type: array of objects
[[custom]]
# type: array of strings
files = ["./icon/*"]
# base is the path that will be removed from all files' path
# type: string
base = "./"
# prefix is the path that will be added to all files' path
# type: string
prefix = ""
# build tags for this set of files
# it will only work if spread mode is enabled
tags = ""
# end: custom
# type: array of objects
[[custom]]
# type: array of strings
files = ["*.glade"]
# base is the path that will be removed from all files' path
# type: string
base = ""
# prefix is the path that will be added to all files' path
# type: string
prefix = ""
# build tags for this set of files
# it will only work if spread mode is enabled
tags = ""
# end: custom

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save