Add extension selection through route param

This commit is contained in:
Benedikt Kulmann committed 2020-04-24 07:43:59 +02:00
1 parent 1739d542ff
commit ea58fd46ef
6 files changed
+69 -26

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
// Code generated by fileb0x at "2020-04-24 07:05:56.652407 +0200 CEST m=+0.045913178" from config file "embed.yml" DO NOT EDIT.
// modification hash(98f7860c24dfcbf085e6832b572284ee.8058aec596c5fb73022d09bb97af796e)
// Code generated by fileb0x at "2020-04-24 07:43:21.927294 +0200 CEST m=+0.042745639" from config file "embed.yml" DO NOT EDIT.
// modification hash(6e03613bbab5fa4c0df18b27cdc62201.8058aec596c5fb73022d09bb97af796e)
package assets
@@ -36,7 +36,7 @@ type HTTPFS struct {
}
// FileSettingsJs is "settings.js"
var FileSettingsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\xf9\x76\xdb\xb8\xd6\x20\x8a\xff\xfd\xeb\xa7\x90\xd8\x69\x36\xf0\x79\x9b\x91\x52\xa7\xea\x7c\x87\x2a\x44\xc7\x49\x9c\xc4\x95\xb1\xe2\x24\x35\xe8\xa8\xbd\x68\x0a\xb2\x50\xa6\x00\x15\x08\xd9\x71\x89\xfc\xbd\xcf\x7d\x8d\xfb\x64\x77\x61\xe2\x24\x2a\x49\x9d\xef\xf4\x70\xbb\x6f\xd6\x8a\x45\x82\x18\x37\x80\x3d\x61\x63\xef\x05\x5d\x32\x4e\x11\x5a\x6e\x79\xaa\x98\xe0\x08\xef\x82\x6d\x4e\x07\xb9\x92\x2c\x55\xc1\xe4\x26\x91\x03\x45\x82\x2d\xb7\x19\x17\xc1\x90\xa8\xbb\x0d\x15\xcb\xc1\x55\x26\x2e\x93\xec\xfd\x8a\xe5\xd3\xfa\x31\xee\xcb\x79\xcb\xf8\x42\xdc\x4e\xed\x4f\x6f\x0e\x5b\x81\xab\xa7\x37\x47\x4e\xb3\xe5\x54\xff\x89\x77\xe5\xc4\x77\x76\x40\x91\x02\x8a\x77\x92\xaa\xad\xe4\x03\x85\x28\xd9\xd1\x4f\x1b\x21\x55\x1e\xef\xca\x12\x68\xe4\xde\x70\xfd\x58\xea\x11\x71\xd2\x1c\xb2\xc2\x3b\x9d\x48\xc9\x7e\xca\x9b\xcb\xdf\x68\xaa\xa2\x8d\x14\x4a\xe8\x9e\x00\x27\x34\x5a\x25\xf9\x9b\x5b\xfe\x56\x8a\x0d\x95\xea\x0e\x24\x09\x7c\xc1\x80\xf8\xfe\x9e\xdf\xad\x2f\x45\x36\xb5\x3f\xf1\xae\x04\x41\x64\xc4\x14\x95\x89\x12\xb2\x28\x82\xbf\xff\xdd\xbf\x04\xc0\x88\x8c\x92\xfc\x8e\xa7\x67\xcd\xef\xad\x94\x00\x12\x22\x23\x25\xce\x95\x64\xfc\xea\x7d\x72\x65\xb2\x34\xde\x83\x1a\x28\xa9\x06\x0a\x70\x90\x76\x10\x82\xd0\x30\xa4\xf5\x10\x06\x8c\xe7\x2a\xe1\xa9\xee\x65\x36\xa5\x71\x06\xcc\x0f\x33\x95\x34\x51\x14\x89\x3a\x33\x86\x84\x70\x7a\x3b\x38\x47\xb2\x28\x66\x73\x3c\x71\xa0\x66\xd1\x05\xe3\x37\xe2\xba\x09\x33\xdd\xa8\x6d\x52\x92\x20\xdf\xe6\x1b\xca\x17\x74\x71\xae\x12\xa9\x02\x5f\xae\xca\x2d\x80\xe1\x1d\x5b\xa2\x80\x7e\xa2\xe9\x56\x31\x7e\x15\x10\x42\x24\x56\x2b\x29\x6e\x07\xba\xc9\x53\x29\x85\x44\xc1\x33\xca\x2d\x08\x06\x2c\x1f\x24\x99\xa4\xc9\xe2\x6e\x20\xb7\x9c\xeb\x22\x78\xa2\xab\x48\xc5\x7a\x93\x51\x45\x17\xb6\x0a\x53\xad\xa9\x47\xbf\x0b\x57\x25\xf3\x5d\xb8\x40\xb8\x5c\x0a\x89\x78\xb4\xa6\x6a\x25\x16\x44\x00\x8f\x12\x79\x45\xd8\x64\x62\xbb\x9f\x10\x1e\x2d\x68\x46\xaf\x12\x45\x75\x03\x89\x4d\x4e\xc9\x25\x4a\x80\x9b\x36\x53\xd3\x4a\x4a\x08\xc9\x71\x2a\xb8\x62\x7c\x4b\x7d\x03\x69\x59\xea\x1e\x70\xfa\x49\xe9\x0e\xf8\x76\x30\x8f\x72\xca\x15\xe1\xd1\x85\xfb\x4d\xe4\xd5\x84\x66\x39\x1d\xb4\x3a\x5c\xe5\x37\xe3\xe8\xc0\xb1\x01\x23\x49\x1a\x03\xb7\x43\x98\xf0\x68\xc1\xf2\x4d\xa2\xd2\xd5\xe9\xa7\x94\x6e\x0c\xa4\xcd\x17\x5c\xea\x86\x02\xdb\xc3\x66\x2b\x61\xc8\xa3\xe4\x52\x6e\x37\x0a\xf9\xaf\xb6\x2e\x3c\x91\xa4\x31\x39\x06\x11\x64\x64\xeb\xa6\xd9\xc0\x9d\x0b\xb9\x4e\x32\x5d\x5b\x16\x99\xc5\xa2\x7b\x2c\x35\xf0\x04\xa7\xd3\x46\xef\xe2\x7a\x18\xbf\x30\x9a\x2d\x02\xc8\x0c\xc4\x7b\xa0\xb7\xbb\x49\xb2\x2d\x8d\xcd\x77\xd0\xf5\xc4\xb6\xba\xb2\xac\x21\x64\x5b\x0b\x43\xd4\x05\x81\x9b\x50\x97\xd3\x4d\x6b\x66\xc7\x5f\x96\x48\x01\x87\x04\x03\x2b\xab\xad\xe2\x87\xb3\x53\xf2\xce\x61\x91\x9d\xae\x3b\xf6\x63\x83\x44\x5e\xc5\x2a\x4a\x93\x2c\x43\x3a\x63\x59\xa6\x1a\xba\x1a\x41\xb4\xb2\xbb\x16\x4d\xee\xb2\x2c\x55\x74\x2b\x93\x0d\x49\x0d\xd4\x72\xd2\x44\x59\x19\xc2\xbb\xba\x03\xcb\xd6\xdb\x46\xbf\xe9\x22\x0b\x5d\x64\x31\x13\x73\xd2\xc0\xcb\x1e\xcb\xad\x58\x5e\x9a\x8a\x57\x7e\xdf\x5e\x51\xf5\xd6\xef\xd8\x37\x4b\xb8\x21\xab\x30\x5c\xa1\x15\x3a\x45\xb3\x39\xc6\x78\x72\x13\x86\x37\x43\xa2\xf1\x00\xb7\x43\xb9\x01\x81\xc3\x10\x2d\xc8\x0d\x36\x35\xdd\x91\x4d\xbd\xe7\x49\xd6\x78\x6e\x63\x86\x05\xae\x07\x72\xa5\x81\x30\xb3\xcb\x1c\x3c\x00\xfc\x1a\x9a\x47\x4b\x21\x4f\x93\x74\xd5\x40\xb3\x14\xef\xd4\x8c\xce\x5b\x58\xb6\x31\x26\x8f\x51\x10\x05\x85\xcb\x12\xe3\x1a\x2e\x6b\x8b\xe6\x0d\x6a\x99\x34\xf3\x92\x36\x3e\xa9\x0a\x24\x35\xb8\x34\x2a\x69\x22\x7b\x09\x09\xde\x0d\xab\x9c\x52\x97\x84\x04\x52\x5b\x7d\xae\x57\xf8\x4c\xcc\x41\x01\xb3\x8b\xdc\x0e\x6c\x48\x48\xee\xd6\xb8\xdd\x08\xb9\x59\xa0\x4b\x92\x45\x66\xc1\x56\xf8\x2d\x0c\x03\x61\x40\x56\x93\x82\x65\x05\xf6\x25\x04\x17\x17\xc9\x6d\xc2\x54\x80\xa7\x34\x92\x34\x17\xd9\x0d\x45\xcb\xc8\xa5\xe2\x48\xad\x28\x6f\x53\x26\xe9\x30\x09\x28\xd3\xcb\x12\x43\xf7\xb3\x03\xbd\xff\x8e\xe3\x46\xcd\x7d\x35\xba\x2e\x13\x05\x09\xca\xf6\x2b\xb4\x03\xe9\xa9\xb7\x4c\x51\x6e\xf7\x92\x81\x99\x06\xa4\x4e\xf5\x05\x88\x9c\x4a\xdb\x5a\x02\x09\x8e\x13\x84\xcb\x7a\x06\x2f\xeb\x19\xe4\x44\x55\x84\x70\x46\xdd\x9e\x9d\x6b\x58\xdf\x08\xb6\x18\x8c\x34\x72\x32\x98\x84\x56\x48\x98\xf0\x6d\x96\x41\x8d\x00\x68\x13\x45\xd6\xb5\x45\xb6\x2b\x61\x88\x68\x85\x0a\x3c\x4e\xa3\x06\x17\xd8\x16\xc0\xf6\xa6\xaf\x42\xec\x46\x93\x4f\x68\x17\x9b\xd8\x1a\xf4\x72\x7a\x7f\xb7\xa1\x8e\x3a\xbd\x5f\xd1\x81\x6f\x7e\xb0\x10\x34\x1f\x70\xa1\x06\x1b\x29\x6e\xd8\x82\x0e\x92\xc1\x7f\x35\x85\xff\xeb\xc0\xd6\x15\x54\xd0\xb2\x6c\x88\x24\x5b\xc4\xa1\x1e\x80\x6d\xa3\xb9\xee\x34\xbe\xb7\xeb\xce\x15\x3c\xd0\x2d\x69\x96\x63\x17\x62\xf9\xc4\x32\x00\xe6\xab\x5f\xa2\x62\x2a\x2c\x82\x46\x74\xa6\xf4\x4a\xd9\x66\xea\x75\xb2\xa6\x73\x22\xec\xc2\x00\x1a\xe9\x15\x47\x94\xf9\x79\x29\xd2\x6a\x57\x0f\x6b\x48\xb5\x80\x6c\x17\x68\x13\xc4\x78\xbf\x2f\x38\x16\x31\xfa\x3a\xa8\x56\x10\xb5\xbd\xd3\x94\x5f\x83\x35\xe1\x03\xb7\xb7\xfa\xaa\xaf\x17\xdb\x6d\xcd\xbf\x69\xc4\xfe\x52\xa4\xb1\x9a\x8d\xe6\xe5\x64\x3c\x60\x7c\xa0\x4c\xd7\x0d\x1a\x7f\x29\x52\xa2\xLine truncated
var FileSettingsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\xe9\x7a\xdb\xb8\xb6\x20\xfa\xfb\xf6\x53\x48\xec\x34\x0f\x70\xbc\xcc\xc8\xa9\x5d\x75\xce\xa6\x0a\xd1\x4e\x1c\x67\xa8\xca\x6c\x27\x35\x68\xab\xfd\xd1\x14\x64\x21\xa6\x00\x15\x08\x79\x88\xc8\x7e\x9f\xfb\x1a\xf7\xc9\xee\x87\x89\x93\xa8\x24\xb5\xcf\xee\xe1\x76\xdf\x7c\x5f\x2c\x12\xc4\xb8\x00\xac\x09\x0b\x6b\xcd\xe9\x82\x71\x8a\xd0\x62\xc3\x53\xc5\x04\x47\x78\x1b\x6c\x72\x3a\xc8\x95\x64\xa9\x0a\xc6\xd7\x89\x1c\x28\x12\x6c\xb8\xcd\x38\x0f\x86\x44\xdd\xad\xa9\x58\x0c\x2e\x33\x71\x91\x64\x67\x4b\x96\x4f\xea\xc7\xb8\x2f\xe7\x0d\xe3\x73\x71\x33\xb1\x3f\xbd\x39\x6c\x05\xae\x9e\xde\x1c\x39\xcd\x16\x13\xfd\x27\xde\x96\x63\xdf\xd9\x01\x45\x0a\x28\xde\x4a\xaa\x36\x92\x0f\x14\xa2\x64\x4b\x6f\xd7\x42\xaa\x3c\xde\x96\x25\xd0\xc8\xbd\xe1\xfa\xb1\xd4\x23\xe2\xa4\x39\x64\x85\xb7\x3a\x91\x92\xdd\x94\x37\x17\x9f\x68\xaa\xa2\xb5\x14\x4a\xe8\x9e\x00\x27\x34\x5a\x26\xf9\x9b\x1b\xfe\x56\x8a\x35\x95\xea\x0e\x24\x09\x7c\xc1\x80\xf8\xfe\x9e\xde\xad\x2e\x44\x36\xb1\x3f\xf1\xb6\x04\x41\x64\xc4\x14\x95\x89\x12\xb2\x28\x82\xbf\xfd\xcd\xbf\x04\xc0\x88\x8c\x92\xfc\x8e\xa7\x2f\x9a\xdf\x5b\x29\x01\x24\x44\x46\x4a\x9c\x2a\xc9\xf8\xe5\x59\x72\x69\xb2\x34\xde\x83\x1a\x28\xa9\x06\x0a\x70\x90\x76\x10\x82\xd0\x30\xa4\xf5\x10\x06\x8c\xe7\x2a\xe1\xa9\xee\x65\x36\xa1\x71\x06\xcc\x0f\x33\x95\x34\x51\x14\x89\x3a\x33\x86\x84\x70\x7a\x33\x78\x83\x64\x51\x4c\x67\x78\xec\x40\xcd\xa2\x73\xc6\xaf\xc5\x55\x13\x66\xba\x51\xdb\xa4\x24\x41\xbe\xc9\xd7\x94\xcf\xe9\xfc\x54\x25\x52\x05\xbe\x5c\x95\x5b\x00\xc3\x5b\xb6\x40\x01\xbd\xa5\xe9\x46\x31\x7e\x19\x10\x42\x24\x56\x4b\x29\x6e\x06\xba\xc9\x13\x29\x85\x44\xc1\x33\xca\x2d\x08\x06\x2c\x1f\x24\x99\xa4\xc9\xfc\x6e\x20\x37\x9c\xeb\x22\x78\xac\xab\x48\xc5\x6a\x9d\x51\x45\xe7\xb6\x0a\x53\xad\xa9\x47\xbf\x0b\x57\x25\xf3\x5d\x38\x45\xb8\x5c\x08\x89\x78\xb4\xa2\x6a\x29\xe6\x44\x00\x8f\x12\x79\x49\xd8\x78\x6c\xbb\x9f\x10\x1e\xcd\x69\x46\x2f\x13\x45\x75\x03\x89\x4d\x4e\xc9\x05\x4a\x80\x9b\x36\x53\xd3\x4a\x4a\x08\xc9\x71\x2a\xb8\x62\x7c\x43\x7d\x03\x69\x59\xea\x1e\x70\x7a\xab\x74\x07\x7c\x3b\x98\x47\x39\xe5\x8a\xf0\xe8\xdc\xfd\x26\xf2\x72\x4c\xb3\x9c\x0e\x5a\x1d\xae\xf2\x9b\x71\x74\xe0\xd8\x80\x91\x24\x8d\x81\xdb\x21\x8c\x79\x34\x67\xf9\x3a\x51\xe9\xf2\xe4\x36\xa5\x6b\x03\x69\xf3\x05\x97\xba\xa1\xc0\xf6\xb0\xd9\x4a\x18\xf2\x28\xb9\x90\x9b\xb5\x42\xfe\xab\xad\x0b\x8f\x25\x69\x4c\x8e\x41\x04\x19\xd9\xb8\x69\x36\x70\xe7\x42\xae\x92\x4c\xd7\x96\x45\x66\xb1\xe8\x1e\x4b\x0d\x3c\xc1\xe9\xa4\xd1\xbb\xb8\x1e\xc6\x6f\x8c\x66\xf3\x00\x32\x03\xf1\x1e\xe8\x6d\xaf\x93\x6c\x43\x63\xf3\x1d\x74\x3d\xb1\xad\xae\x2c\x6b\x08\xd9\xd6\xc2\x10\x75\x41\xe0\x26\xd4\xe5\x74\xd3\x9a\xd9\xf1\x97\x25\x52\xc0\x21\xc1\xc0\xca\x6a\xab\xf8\xe1\x6c\x95\xbc\x73\x58\x64\xab\xeb\x8e\xfd\xd8\x20\x91\x97\xb1\x8a\xd2\x24\xcb\x90\xce\x58\x96\xa9\x86\xae\x46\x10\xad\xec\xae\x45\x93\xbb\x2c\x4b\x15\xdd\xc8\x64\x4d\x52\x03\xb5\x9c\x34\x51\x56\x86\xf0\xb6\xee\xc0\xa2\xf5\xb6\xd6\x6f\xba\xc8\x5c\x17\x99\x4f\xc5\x8c\x34\xf0\xb2\xc7\x72\x4b\x96\x97\xa6\xe2\xa5\xdf\xb7\x97\x54\xbd\xf5\x3b\xf6\xcd\x02\xae\xc9\x32\x0c\x97\x68\x89\x6e\xd1\x74\x86\x31\x1e\x5f\x87\xe1\xf5\x90\x68\x3c\xc0\xed\x50\xae\x41\xe0\x30\x44\x73\x72\x8d\x4d\x4d\x77\x64\x5d\xef\x79\x92\x35\x9e\xdb\x98\x61\x8e\xeb\x81\x5c\x6a\x20\x4c\xed\x32\x07\x0f\x00\xbf\x86\x66\xd1\x42\xc8\x93\x24\x5d\x36\xd0\x2c\xc5\x5b\x35\xa5\xb3\x16\x96\x6d\x8c\xc9\x63\x14\x44\x41\xe1\xb2\xc4\xb8\x86\xcb\xca\xa2\x79\x83\x5a\xc6\xcd\xbc\xa4\x8d\x4f\xaa\x02\x49\x0d\x2e\x8d\x4a\x9a\xc8\x5e\x42\x82\xb7\xc3\x2a\xa7\xd4\x25\x21\x81\xd4\x56\x9f\xeb\x15\x3e\x15\x33\x50\xc0\xec\x22\xb7\x03\x1b\x12\x92\xbb\x35\x6e\x37\x42\x6e\x16\xe8\x82\x64\x91\x59\xb0\x15\x7e\x0b\xc3\x40\x18\x90\xd5\xa4\x60\x51\x81\x7d\x01\xc1\xf9\x79\x72\x93\x30\x15\xe0\x09\x8d\x24\xcd\x45\x76\x4d\xd1\x22\x72\xa9\x38\x52\x4b\xca\xdb\x94\x49\x3a\x4c\x02\xca\xf4\xb2\xc4\xd0\xfd\xec\x40\xef\xbf\xe3\xb8\x51\x73\x5f\x8d\xae\xcb\x44\x41\x82\xb2\xdd\x0a\xed\x40\x7a\xea\x2d\x53\x94\xdb\xbd\x64\x60\xa6\x01\xa9\x53\x7d\x01\x22\x27\xd2\xb6\x96\x40\x82\xe3\x04\xe1\xb2\x9e\xc1\x8b\x7a\x06\x39\x51\x15\x21\x9c\x52\xb7\x67\x67\x1a\xd6\xd7\x82\xcd\x07\x23\x8d\x9c\x0c\x26\xa1\x15\x12\x26\x7c\x93\x65\x50\x23\x00\xda\x44\x91\x75\x6d\x91\xed\x4a\x18\x22\x5a\xa1\x02\x8f\xd3\xa8\xc1\x05\xb6\x05\xb0\xbd\xe9\xab\x10\xbb\xd1\xe4\x63\xda\xc5\x26\xb6\x06\xbd\x9c\xce\xee\xd6\xd4\x51\xa7\xb3\x25\x1d\xf8\xe6\x07\x73\x41\xf3\x01\x17\x6a\xb0\x96\xe2\x9a\xcd\xe9\x20\x19\xfc\x8b\x29\xfc\x2f\x03\x5b\x57\x50\x41\xcb\xb2\x21\x92\x6c\x10\x87\x7a\x00\xb6\x8d\xe6\xba\xd3\xf8\xde\xae\x3b\x57\x70\x4f\xb7\xa4\x59\x8e\x5d\x88\xe5\x63\xcb\x00\x98\xaf\x7e\x89\x8a\x89\xb0\x08\x1a\xd1\xa9\xd2\x2b\x65\x93\xa9\xd7\xc9\x8a\xce\x88\xb0\x0b\x03\x68\xa4\x57\x1c\x51\xe6\xe7\xa5\x48\xab\x5d\x3d\xac\x21\xd5\x02\xb2\x5d\xa0\x4d\x10\xe3\xdd\xbe\xe0\x58\xc4\xe8\xdb\xa0\x5a\x41\xd4\xf6\x4e\x53\x7e\x0d\xd6\x84\x0f\xdc\xde\xea\xab\xbe\x5e\x6c\x37\x35\xff\xa6\x11\xfb\x4b\x91\xc6\x6a\x3a\x9a\x95\xe3\xa3\x01\xe3\x03\x65\xba\x6e\xd0\xf8\x4b\x91\x12\x35\x3d\x9a\x61\xLine truncated
// FileSettingsJsMap is "settings.js.map"
var FileSettingsJsMap = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\x89\x76\x1b\xb9\xd1\x30\xfa\x2a\xb0\x32\xbf\x49\x8e\xb9\x58\xe3\xd9\x42\x45\x71\x1c\x5b\xf6\x28\xb1\x2d\xff\x96\xc6\xf9\x72\x25\x1d\x19\x64\x83\x24\x46\xcd\x06\xd3\x68\x4a\x66\x6c\x7d\xef\x73\x5f\xe3\x3e\xd9\x3d\xa8\x2a\x6c\xbd\x50\xa4\xe4\xf9\x96\xc9\x39\xb1\x88\x06\x0a\x40\xa1\x50\x28\xd4\x86\xcf\x3b\x57\x22\xd7\x52\x65\x3b\xc3\x27\xdd\x9d\x89\x4c\xc5\xce\x70\x47\x8b\xa2\x90\xd9\x54\xf7\x7f\xd3\x3b\xdd\x1d\xad\x96\xf9\x58\xe8\x9d\xe1\xe9\x4e\xbf\x3f\xc8\x54\x22\x2e\xe6\x2a\x59\xa6\x42\x0f\x72\x31\x15\x99\xc8\x79\xa1\xf2\x5e\xbe\xcc\x0a\x39\x17\x03\xfa\x17\xdb\x96\x1b\x8c\x55\x2e\x7a\xbf\xe9\x81\xcc\x0a\x91\x67\x3c\xd5\x83\x69\xaa\x46\x3c\xdd\xb4\xf6\x84\xcb\x54\x6f\x5a\x39\x11\x7a\x9c\xcb\x45\xa1\xf2\x8d\x9b\xa8\xd1\x6f\x62\x5c\xf4\x16\xb9\x5a\x88\xbc\x58\xf5\xa4\xee\x89\x6c\x39\x17\x39\x1f\xa5\x1b\x4f\x69\x9c\x0b\x5e\x08\x0f\xc4\x8f\x63\x63\x08\x29\xd7\x5a\x4d\x7a\x39\xbf\xde\xb4\x89\xcc\x12\xf1\x49\x24\x3d\x9c\xc1\xa6\xad\x72\xf1\xaf\xa5\xcc\x05\xb5\xea\x8d\x95\xc8\xc7\x72\x8b\xa9\x16\xaa\x77\xb7\x8e\xa5\xde\xb2\x41\xa1\x7a\x8b\x5c\xce\x65\x21\xaf\x36\x1e\xdd\x8c\x6f\x4e\x2b\x6a\xbc\x9c\x8b\xac\xe8\xd1\xe2\x89\x54\x98\x9f\x1b\x4f\x47\xfc\xdc\x4b\xd4\xbc\x97\x88\x89\xcc\x36\x1e\x1f\x61\x7d\x2a\x8a\x9e\xba\xce\xee\x43\x30\x3c\xdb\x12\x9d\xd4\x35\x8e\xd7\xf5\xbc\x25\x85\x67\x2a\x0b\xb6\xc7\xd6\x50\xb4\x28\x7a\xdb\x6d\x7f\x3d\xe3\xb9\x48\x7a\xba\x50\xf9\xc6\x48\x96\x99\x5e\x98\xa9\x22\x1b\xdb\xb4\x55\xc6\x0d\xa1\xf5\xae\x05\xbf\xec\xcd\xf9\x62\xbb\x01\x6e\x5a\x7b\x29\x37\xae\x4a\x33\xbf\x14\x1b\x63\x77\x26\x93\x44\x64\xa6\xc5\xc6\x9b\xc0\xfe\xd5\xd3\x05\x2f\x36\x46\x55\x2e\xb6\xa3\xfa\x05\x2f\x66\x1b\x9f\x0e\xa2\xe8\x8d\x96\x32\x2d\x7a\x32\xdb\x8a\x27\x15\x62\x2a\x36\xde\x3d\x85\xea\xa5\x22\x9b\x6e\x3e\xac\x42\xf5\xf8\x48\xab\x74\x59\x08\xe4\x7f\x1b\xef\xd3\x3c\xe7\xab\x9e\xcc\xc6\xe9\x32\x11\xdb\x9e\x4a\x66\x29\x7b\xb6\x74\xd3\xb6\x66\x7f\xf6\x46\xcb\xe9\x56\x84\xd0\xc4\x98\x32\x3e\xdf\x7a\xd4\x15\x20\x7a\x35\x1f\xa9\xcd\x4f\x71\xd3\x76\x9b\xb1\x8f\xd5\x62\xd5\x1b\xab\x4c\x17\xf9\x72\x6c\x04\x13\xea\x58\x6e\x3e\x72\xa9\x7b\x13\x95\x8f\x37\xdf\xc8\xe2\xd3\x42\xe5\x1b\xf3\x5e\xe2\x2d\x88\x87\x8d\x79\x85\xb6\x2d\x7a\x5c\xf7\xb6\xe0\x1c\x52\xf7\x80\xea\xb6\xa0\xed\x3b\x1d\x25\x77\xa0\xaf\xf8\xf4\xd9\x62\x81\x66\xc5\x7c\x63\xc4\x59\xd1\x06\x8e\xac\xaf\xb2\x01\x7a\xe2\xd3\x76\x7b\xf0\x5a\xa4\x69\xef\x32\x33\x90\xb6\x5b\xf4\x4a\xc3\xde\x75\xce\x17\x8b\xcd\x09\x93\x30\x7c\xe7\x01\x98\x23\xba\x50\x3d\x5d\xe4\x32\x9b\xf6\x0a\x3e\xdd\x98\xd1\xf5\x26\xcb\x6c\x5c\x48\xb5\x31\xdb\xb6\xf5\x7b\x23\x99\x25\x66\x03\x17\xe2\xd3\xc6\x34\x88\x7c\xd5\x1c\xf4\x52\xe8\x2d\xd7\x9a\x78\x72\x61\xee\x31\xb7\x8e\xd7\xfe\x16\xba\xbf\x1d\x26\x45\x36\x35\x2b\xb1\xd4\x22\xef\xf1\xe9\x16\xa2\x25\x35\xbc\xfa\xb9\x47\x37\xb5\xed\xe6\x35\x17\xc5\x4c\x25\xbd\x19\xd7\x0e\x3d\x7a\xb9\xd8\x86\x5d\x45\x70\x96\x5a\xe8\xde\x86\xe7\x65\x80\x2b\xe4\x40\x13\x99\x16\x9b\x9f\xca\x51\xbf\x52\x03\x11\x6e\xce\x95\xb0\xf5\x44\xe5\x3d\xc1\xc7\x5b\x0f\x74\xdb\x66\xc4\x31\xbf\x82\x24\x5f\xba\x3c\x7e\xc5\x11\xdc\xc2\x5d\xab\xb0\xb6\xe1\xe8\xe6\xf2\x03\x5b\x68\x94\xde\xc6\xc6\xed\xef\x6b\x31\xea\x9b\x66\x63\x95\xa6\x02\xb6\xbe\xbe\x05\xf1\x7f\x19\xf1\x91\x48\x07\x4e\xd3\xe0\xb5\x0f\x83\x35\x52\x58\xa9\xd5\x4c\xa4\x0b\x91\xeb\x01\xd7\xab\x6c\x7c\xa2\x5e\x59\x10\x5b\x35\x46\xbe\xfa\x6e\xed\x22\xe5\x2a\x4d\x97\x8b\xde\x22\x5d\x4e\x65\xd6\x33\x9f\xe8\xb6\xa3\x07\x3a\x1f\xaf\x55\x7c\x5c\x2d\xc5\xa7\x41\x22\x75\x01\x7f\xf5\x85\x9e\xbb\x7a\x4b\x39\x18\xab\xf9\x42\x65\x22\x2b\xf4\xe0\x98\x34\x35\xcf\x16\x8b\xfe\xd5\x52\xd4\x83\xb2\xaa\x99\x9e\x1b\xbd\x81\x9c\xa9\x7c\xce\x53\xf9\x6f\xd1\x73\xf0\xfa\xf3\x4d\x89\x94\xa7\x69\xef\x5a\x16\xb3\x9e\xe6\x13\xe1\x79\x67\x6f\x9c\x2a\x2d\xb3\x8d\x4f\x09\x6c\xb8\x85\x7e\xc6\x0a\x33\x3d\xdb\x92\xf8\xc3\x16\xc2\x8d\x3f\xcb\xb6\x65\x84\xa4\x95\xd9\xe6\xee\x72\xc7\x61\x12\xf3\xca\xd5\x7c\xe3\xb1\xcd\xc4\xf8\xb2\x37\x56\x79\x2e\xc6\x45\x26\xb4\xee\xa9\xc9\x1d\xce\x34\x62\x7f\x5b\x74\xcc\x93\xc4\x9c\x07\xcb\x4c\x8f\xd5\x62\x83\xdd\x1f\x0a\xea\x30\x58\xc3\xaa\x0a\x55\xac\x16\xc2\x88\x5b\x5b\x9c\x0f\x81\x8c\xe6\x41\x6c\xbe\x3c\x8e\xf6\x0c\xd6\xb6\xd5\xed\xb9\x75\x0d\x2e\x1a\x9b\x8b\x46\x0b\xa5\xb5\x24\x8d\x09\x8e\x7b\xcb\x39\xeb\x3b\xce\x99\xc4\x41\x3b\xfa\x2d\xc9\xe2\x8e\xcd\xb6\x50\x9f\xd0\xf4\xdc\x2e\xdd\xf6\xc4\xda\xb0\x61\x20\x74\xe6\x42\xfc\x7b\x1b\x86\x65\x35\x24\x73\x51\xf0\x84\x17\x7c\x3b\x6a\xdb\x5c\x26\xcd\x7a\x32\xd3\x05\xcf\x36\xd7\x58\xc9\x6c\x26\x72\x59\xf4\xe4\xa4\x47\x5a\xdd\x8d\xd9\x8d\x3f\x81\xb7\xd5\xf9\xf4\x78\xba\xd5\x5d\x82\x44\xd0\xed\x07\x66\xd6\x55\x6d\x41\x10\x5a\x6c\xcc\xd6\xe9\x40\x98\x2f\xd3\x42\x8e\x56\xb7\xad\x51\xd8\x07\x92\xda\x76\xdb\xa2\x4e\xea\x59\x0f\xa1\x49\x7e\x31\x9b\xeb\xb5\xbc\x14\x27\xea\x59\xf3\xfd\x7e\x5d\xe3\x7f\xc8\x62\xa6\x96\xc5\x2f\xaa\x91\x69\x37\xb4\xb6\x82\xde\x5d\x7a\x5e\x66\x74\xea\x8a\xe4\xf0\x1e\x60\x32\x95\xd9\xe6\xc7\x8b\x5c\xf0\x06\x5a\x6f\x68\x5d\xa8\xe7\x2a\xd3\xcb\xb9\x69\xbe\xa6\xef\x46\x96\xf6\x9Line truncated
+8 -3
View File
@@ -2,8 +2,13 @@ import 'regenerator-runtime/runtime'
import SettingsApp from './components/SettingsApp.vue'
import store from './store'
// just a dummy function to trick gettext tools
function $gettext(msg) {
return msg
}
const appInfo = {
name: 'Settings',
name: $gettext('Settings'),
id: 'settings',
icon: 'info',
isFileEditor: false,
@@ -16,7 +21,7 @@ const appInfo = {
const routes = [
{
name: 'settings',
path: '/',
path: '/:extension?',
components: {
app: SettingsApp
}
@@ -25,7 +30,7 @@ const routes = [
const navItems = [
{
name: 'Settings',
name: $gettext('Settings'),
iconMaterial: appInfo.icon,
route: {
name: 'settings',
+46 -20
View File
@@ -1,11 +1,6 @@
<template>
<div>
<oc-loader v-if="loading" />
<div v-else class="uk-width-3-4@m uk-container uk-padding">
<div class="uk-flex uk-flex-between uk-flex-middle">
<h1 v-translate class="oc-page-title">Settings</h1>
</div>
<hr />
<div v-if="initialized" class="uk-width-3-4@m uk-container uk-padding">
<oc-alert v-if="extensions.length === 0" variation="primary" no-close>
<p class="uk-flex uk-flex-middle">
<oc-icon name="info" class="uk-margin-xsmall-right" />
@@ -13,14 +8,21 @@
</p>
</oc-alert>
<template v-else>
<settings-bundle
v-for="bundle in visibleSettingsBundles"
:key="'bundle-' + bundle.key"
:bundle="bundle"
class="uk-margin-top"
/>
<div class="uk-flex uk-flex-between uk-flex-middle">
<h1 v-translate class="oc-page-title">{{ selectedExtensionName }}</h1>
</div>
<hr />
<template>
<settings-bundle
v-for="bundle in selectedSettingsBundles"
:key="'bundle-' + bundle.key"
:bundle="bundle"
class="uk-margin-top"
/>
</template>
</template>
</div>
<oc-loader v-else />
</div>
</template>
@@ -39,9 +41,20 @@ export default {
computed: {
...mapGetters('Settings', [
'extensions',
'initialized',
'getSettingsBundlesByExtension'
]),
visibleSettingsBundles() {
extensionRouteParam() {
return this.$route.params.extension
},
selectedExtensionName() {
// TODO: extensions need to be registered with display names, separate from the settings bundles. until then: hardcoded translation
if (this.selectedExtension === 'ocis-accounts') {
return 'Account'
}
return this.selectedExtension
},
selectedSettingsBundles() {
if (this.selectedExtension) {
return this.getSettingsBundlesByExtension(this.selectedExtension)
}
@@ -49,14 +62,27 @@ export default {
}
},
methods: {
...mapActions('Settings', ['fetchSettingsBundles'])
},
async created () {
await this.fetchSettingsBundles()
if (this.extensions.length > 0) {
this.selectedExtension = this.extensions[0]
...mapActions('Settings', ['initialize']),
resetSelectedExtension() {
if (this.extensions.length > 0) {
if (this.extensionRouteParam && this.extensions.includes(this.extensionRouteParam)) {
this.selectedExtension = this.extensionRouteParam
} else {
this.selectedExtension = this.extensions[0]
}
}
}
},
created () {
this.initialize()
},
watch: {
initialized() {
this.resetSelectedExtension()
},
extensionRouteParam() {
this.resetSelectedExtension()
}
this.loading = false;
}
}
</script>
+1
View File
@@ -65,6 +65,7 @@ export default {
applyValue() {
// TODO: propagate value to parent
// TODO: show a spinner while the request for saving the value is running!
this.initialValue = this.value
}
},
mounted() {
+1
View File
@@ -47,6 +47,7 @@ export default {
applyValue() {
// TODO: propagate value to parent
// TODO: show a spinner while the request for saving the value is running!
this.initialValue = this.value
},
cancel() {
this.value = this.initialValue
+10
View File
@@ -2,11 +2,13 @@ import { ListSettingsBundles } from '../client/settings'
const state = {
config: null,
initialized: false,
settingsBundles: []
}
const getters = {
config: state => state.config,
initialized: state => state.initialized,
settingsBundles: state => state.settingsBundles,
extensions: state => {
return [...new Set(Array.from(state.settingsBundles).map(bundle => bundle.extension))].sort()
@@ -19,6 +21,9 @@ const getters = {
}
const mutations = {
SET_INITIALIZED (state, value) {
state.initialized = value
},
SET_SETTINGS_BUNDLES (state, payload) {
state.settingsBundles = payload
},
@@ -32,6 +37,11 @@ const actions = {
commit('LOAD_CONFIG', config)
},
async initialize({ commit, dispatch }) {
await dispatch('fetchSettingsBundles')
commit('SET_INITIALIZED', true)
},
async fetchSettingsBundles ({ commit, dispatch, getters }) {
const response = await ListSettingsBundles({
$domain: getters.config.url