Make use of the new dynamic navItems feature in phoenix

Phoenix core now has the ability to add navItems dynamically. With this
we can add navItems for the extensions which have at least one settings
bundle.
This commit is contained in:
Benedikt Kulmann committed 2020-06-04 08:37:58 +02:00
1 parent 86611f6e1c
commit cdf1d89a63
2 files changed
+37 -13

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
// Code generated by fileb0x at "2020-06-03 13:34:57.567257 +0200 CEST m=+0.040129778" from config file "embed.yml" DO NOT EDIT.
// modification hash(65d24f2e8af3a68b0d8a76c191429e1f.8058aec596c5fb73022d09bb97af796e)
// Code generated by fileb0x at "2020-06-04 08:14:22.683397 +0200 CEST m=+0.037980582" from config file "embed.yml" DO NOT EDIT.
// modification hash(a4bbb571381c6a9f8f9488d5d3e56d0b.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\xeb\x76\xdb\x38\xb6\x28\x0a\xff\xfe\xf6\x53\x48\x5c\xd9\x5c\xc0\xf2\x34\x23\xa7\xba\xaa\x77\x53\x85\xa8\x13\xc7\x49\xa5\x72\x71\x12\x3b\xa9\x4a\xa9\x35\x3c\x68\x09\xb2\x10\x53\x80\x02\x42\xbe\x44\xe4\x7e\x9f\xef\x35\xce\x93\x9d\x81\x1b\x6f\xa2\x9c\x54\x77\xad\xb3\xea\xec\xb3\x32\x46\x2c\x12\xc4\x1d\x13\xf3\x8e\x89\x19\x9d\x33\x4e\x11\x9a\xaf\xf9\x54\x31\xc1\x11\xde\x04\xeb\x8c\xf6\x32\x25\xd9\x54\x05\xc3\xab\x44\xf6\x14\x09\xd6\xdc\x66\x9c\x05\x7d\xa2\x6e\x57\x54\xcc\x7b\x17\xa9\x38\x4f\xd2\xd3\x05\xcb\x46\xd5\x63\xdc\x95\xf3\x9a\xf1\x99\xb8\x1e\xd9\x9f\xce\x1c\xb6\x02\x57\x4f\x67\x8e\x8c\xa6\xf3\x91\xfe\x13\x6f\x8a\xa1\xef\x6c\x8f\x22\x05\x14\x6f\x24\x55\x6b\xc9\x7b\x0a\x51\xb2\xa1\x37\x2b\x21\x55\x16\x6f\x8a\x02\x68\xe4\xde\x70\xf5\x58\xe8\x11\x71\x52\x1f\xb2\xc2\x1b\x9d\x48\xc9\x76\xca\xf1\xf9\x27\x3a\x55\xd1\x4a\x0a\x25\x74\x4f\x80\x13\x1a\x2d\x92\xec\xf8\x9a\xbf\x91\x62\x45\xa5\xba\x05\x49\x02\x5f\x30\x20\xbe\xbf\x27\xb7\xcb\x73\x91\x8e\xec\x4f\xbc\x29\x40\x10\x19\x31\x45\x65\xa2\x84\xcc\xf3\xe0\xef\x7f\xf7\x2f\x01\x30\x22\xa3\x24\xbb\xe5\xd3\xe7\xf5\xef\x8d\x94\x00\x12\x22\x23\x25\x4e\x94\x64\xfc\xe2\x34\xb9\x30\x59\x6a\xef\x41\x35\x29\x99\x9e\x14\xe0\x20\xed\x20\x04\xa1\x61\x48\xab\x21\xf4\x18\xcf\x54\xc2\xa7\xba\x97\xe9\x88\xc6\x29\x30\x3f\xcc\xa9\xa4\x89\xa2\x48\x54\x99\x31\x24\x84\xd3\xeb\xde\x09\x92\x79\x3e\x9e\xe0\xa1\x9b\x6a\x16\x9d\x31\x7e\x25\x2e\xeb\x73\xa6\x1b\xb5\x4d\x4a\x12\x64\xeb\x6c\x45\xf9\x8c\xce\x4e\x54\x22\x55\xe0\xcb\x95\xb9\x05\x30\xbc\x61\x73\x14\xd0\x1b\x3a\x5d\x2b\xc6\x2f\x02\x42\x88\xc4\x6a\x21\xc5\x75\x4f\x37\x79\x24\xa5\x90\x28\x78\x46\xb9\x9d\x82\x1e\xcb\x7a\x49\x2a\x69\x32\xbb\xed\xc9\x35\xe7\xba\x08\x1e\xea\x2a\xa6\x62\xb9\x4a\xa9\xa2\x33\x5b\x85\xa9\xd6\xd4\xa3\xdf\x85\xab\x92\xf9\x2e\x1c\x21\x5c\xcc\x85\x44\x3c\x5a\x52\xb5\x10\x33\x22\x80\x47\x89\xbc\x20\x6c\x38\xb4\xdd\x4f\x08\x8f\x66\x34\xa5\x17\x89\xa2\xba\x81\xc4\x26\x67\xe4\x1c\x25\xc0\x4d\x9b\x99\x69\x25\x23\x84\x4c\xf1\x54\x70\xc5\xf8\x9a\xfa\x06\xb2\xa2\xd0\x3d\xe0\xf4\x46\xe9\x0e\xf8\x76\x30\x8f\x32\xca\x15\xe1\xd1\x99\xfb\x4d\xe4\xc5\x90\xa6\x19\xed\x35\x3a\x5c\xe6\x37\xe3\x68\xcd\x63\x6d\x8e\x24\xa9\x0d\xdc\x0e\x61\xc8\xa3\x19\xcb\x56\x89\x9a\x2e\x8e\x6e\xa6\x74\x65\x66\xda\x7c\xc1\x85\x6e\x28\xb0\x3d\xac\xb7\x12\x86\x3c\x4a\xce\xe5\x7a\xa5\x90\xff\x6a\xeb\xc2\x43\x49\x6a\x8b\x63\x10\x41\x4a\xd6\x6e\x99\xcd\xbc\x73\x21\x97\x49\xaa\x6b\x4b\x23\x03\x2c\xba\xc7\x52\x4f\x9e\xe0\x74\x54\xeb\x5d\x5c\x0d\xe3\x23\xa3\xe9\x2c\x80\xd4\xcc\x78\xc7\xec\x6d\xae\x92\x74\x4d\x63\xf3\x1d\x74\x3d\xb1\xad\xae\x28\xaa\x19\xb2\xad\x85\x21\x6a\x4f\x81\x5b\x50\x97\xd3\x2d\x6b\x6a\xc7\x5f\x14\x48\x01\x87\x04\x03\x2b\xca\xad\xe2\x87\xb3\x51\xf2\xd6\x61\x91\x8d\xae\x3b\xf6\x63\x83\x44\x5e\xc4\x2a\x9a\x26\x69\x8a\x74\xc6\xa2\x98\xea\xd9\xd5\x08\xa2\x91\xdd\xb5\x68\x72\x17\x45\xa1\xa2\x6b\x99\xac\x48\x66\x66\x6d\x4a\xea\x28\x2b\x45\x78\x53\x75\x60\xde\x78\x9b\xe9\x37\x5d\x64\xa5\x8b\xac\xc6\x62\x42\x6a\x78\xd9\x63\xb9\x05\xcb\x0a\x53\xf1\xc2\xef\xdb\x0b\xaa\xde\xf8\x1d\x7b\x3c\x87\x2b\xb2\x08\xc3\x05\x5a\xa0\x1b\x34\x9e\x60\x8c\x87\x57\x61\x78\xd5\x27\x1a\x0f\x70\x3b\x94\x2b\x10\x38\x0c\xd1\x8a\x5c\x61\x53\xd3\x2d\x99\x55\x7b\x9e\xa4\xb5\xe7\x26\x66\x58\xe1\x6a\x20\x17\x7a\x12\xc6\x16\xcc\xc1\x4f\x80\x87\xa1\x49\x34\x17\xf2\x28\x99\x2e\x6a\x68\x96\xe2\x8d\x1a\xd3\x49\x03\xcb\xd6\xc6\xe4\x31\x0a\xa2\xa0\x70\x51\x60\x5c\xcd\xcb\xd2\xa2\x79\x83\x5a\x86\xf5\xbc\xa4\x89\x4f\xca\x02\x49\x35\x5d\x1a\x95\xd4\x91\xbd\x84\x04\x6f\xfa\x65\x4e\xa9\x4b\x42\x02\x99\xad\x7e\xaa\x21\x7c\x2c\x26\xa0\x80\x59\x20\xb7\x03\xeb\x13\x32\x75\x30\x6e\x37\xc2\xd4\x00\xe8\x9c\xa4\x91\x01\xd8\x12\xbf\x85\x61\x20\xcc\x94\x55\xa4\x60\x5e\x4e\xfb\x1c\x82\xb3\xb3\xe4\x3a\x61\x2a\xc0\x23\x1a\x49\x9a\x89\xf4\x8a\xa2\x79\xe4\x52\x71\xa4\x16\x94\x37\x29\x93\x74\x98\x04\x94\xe9\x65\x81\xa1\xfd\xd9\x4d\xbd\xff\x8e\xe3\x5a\xcd\x5d\x35\xba\x2e\x13\x05\x09\x4a\xb7\x2b\xb4\x03\xe9\xa8\xb7\xc8\xd0\xd4\xee\x25\x33\x67\x7a\x22\x75\xaa\x2f\x40\xe4\x48\xda\xd6\x12\x48\x70\x9c\x20\x5c\x54\x2b\x78\x5e\xad\x20\x27\xaa\x24\x84\x63\xea\xf6\xec\x44\xcf\xf5\x95\x60\xb3\xde\x40\x23\x27\x83\x49\x68\x89\x84\x09\x5f\xa7\x29\x54\x08\x80\xd6\x51\x64\x55\x5b\x64\xbb\x12\x86\x88\x96\xa8\xc0\xe3\x34\x6a\x70\x81\x6d\x01\x6c\x6f\xba\x2a\xc4\x6e\x34\xd3\x21\x6d\x63\x13\x5b\x83\x06\xa7\xd3\xdb\x15\x75\xd4\xe9\x74\x41\x7b\xbe\xf9\xde\x4c\xd0\xac\xc7\x85\xea\xad\xa4\xb8\x62\x33\xda\x4b\x7a\xff\x6e\x0a\xff\x7b\xcf\xd6\x15\x94\xb3\x35\x2d\x2c\x9d\x5c\x23\x0e\xd5\x00\x6c\x1b\x75\xb8\xd3\xf8\xde\xc2\x9d\x2b\xb8\xa3\x5b\xd2\x80\x63\x7b\xc6\xa6\x43\xcb\x00\x98\xaf\x1e\x44\xc5\x48\x58\x04\x8d\xe8\x58\x69\x48\x59\xa7\xea\x75\xb2\xa4\x13\x22\x2c\x60\x00\x8d\x34\xc4\x11\x65\x7e\x5e\x8a\x69\xb9\xab\xfb\xd5\x4c\x35\x26\xd9\x02\x68\x7d\x8a\xf1\x76\x5f\x70\x2c\x62\xf4\x6d\xb3\x5a\xce\xa8\xed\x9d\xa6\xfc\x7a\x5a\x13\xde\x73\x7b\xab\xab\xfa\x0a\xd8\xae\x2b\xfe\x4d\x23\xf6\x97\x62\x1a\xab\xf1\x60\x52\x0c\x0f\x7a\x8c\xf7\x94\xe9\xba\x41\xe3\xLine truncated
var FileSettingsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\xf9\x96\xdb\xb6\xb6\x20\x8c\xff\xfd\xeb\xa7\x90\xd8\x6e\x5e\xe0\xd6\x2e\x46\xe5\x9c\x9c\xd3\x87\x0a\xa2\xe3\x39\x8e\xc7\xb8\x6c\x67\xd0\xd5\xaa\xc5\x92\xa0\x12\x5c\x14\xa0\x80\x50\x0d\x96\xd8\xef\xf3\x7b\x8d\xef\xc9\xbe\x85\x0d\x80\x83\x44\xd9\xce\x3d\xb9\x7d\xd3\xfd\x5d\xaf\xe5\x12\x09\x62\xc6\xc6\x9e\xb1\x31\xe3\x73\x21\x39\x21\xf3\xb5\x9c\x1a\xa1\x24\xa1\x9b\x68\x5d\xf0\x5e\x61\xb4\x98\x9a\x68\x78\x95\xe9\x9e\x61\xd1\x5a\xba\x8c\xb3\xa8\xcf\xcc\xed\x8a\xab\x79\xef\x22\x57\xe7\x59\xfe\x76\x21\x8a\x51\xfd\x98\x76\xe5\xbc\x16\x72\xa6\xae\x47\xee\xa7\x33\x87\xab\xc0\xd7\xd3\x99\xa3\xe0\xf9\x7c\x64\xff\xa4\x9b\x72\x18\x3a\xdb\xe3\xc4\x00\xa7\x1b\xcd\xcd\x5a\xcb\x9e\x21\x9c\x6d\xf8\xcd\x4a\x69\x53\xa4\x9b\xb2\x04\x9e\xf8\x37\x5a\x3f\x96\x76\x44\x92\x35\x87\x6c\xe8\xc6\x26\x72\xb6\x9f\xf2\xea\xfc\x03\x9f\x9a\x64\xa5\x95\x51\xb6\x27\x20\x19\x4f\x16\x59\xf1\xea\x5a\xbe\xd6\x6a\xc5\xb5\xb9\x05\xcd\xa2\x50\x30\x62\xa1\xbf\xa7\xb7\xcb\x73\x95\x8f\xdc\x4f\xba\x29\x41\x31\x9d\x08\xc3\x75\x66\x94\xde\x6e\xa3\x7f\xfc\x23\xbc\x44\x20\x98\x4e\xb2\xe2\x56\x4e\x9f\x36\xbf\xb7\x52\x22\xc8\x98\x4e\x8c\x3a\x35\x5a\xc8\x8b\xb7\xd9\x05\x66\x69\xbc\x47\xf5\xa4\x14\x76\x52\x40\x82\x76\x83\x50\x8c\xc7\x31\xaf\x87\xd0\x13\xb2\x30\x99\x9c\xda\x5e\xe6\x23\x9e\xe6\x20\xc2\x30\xa7\x9a\x67\x86\x13\x55\x67\xa6\x90\x31\xc9\xaf\x7b\xa7\x44\x6f\xb7\xe3\x09\x1d\xfa\xa9\x16\xc9\x99\x90\x57\xea\xb2\x39\x67\xb6\x51\xd7\xa4\x66\x51\xb1\x2e\x56\x5c\xce\xf8\xec\xd4\x64\xda\x44\xa1\x5c\x95\x5b\x81\xa0\x1b\x31\x27\x11\xbf\xe1\xd3\xb5\x11\xf2\x22\x62\x8c\x69\x6a\x16\x5a\x5d\xf7\x6c\x93\x8f\xb4\x56\x9a\x44\x4f\xb8\x74\x53\xd0\x13\x45\x2f\xcb\x35\xcf\x66\xb7\x3d\xbd\x96\xd2\x16\xa1\x43\x5b\xc5\x54\x2d\x57\x39\x37\x7c\xe6\xaa\xc0\x6a\xb1\x1e\xfb\xae\x7c\x95\x22\x74\xe1\x11\xa1\xe5\x5c\x69\x22\x93\x25\x37\x0b\x35\x63\x0a\x64\x92\xe9\x0b\x26\x86\x43\xd7\xfd\x8c\xc9\x64\xc6\x73\x7e\x91\x19\x6e\x1b\xc8\x5c\x72\xc1\xce\x49\x06\x12\xdb\x2c\xb0\x95\x82\x31\x36\xa5\x53\x25\x8d\x90\x6b\x1e\x1a\x28\xca\xd2\xf6\x40\xf2\x1b\x63\x3b\x10\xda\xa1\x32\x29\xb8\x34\x4c\x26\x67\xfe\x37\xd3\x17\x43\x9e\x17\xbc\xd7\xea\x70\x95\x1f\xc7\xb1\x33\x8f\x8d\x39\xd2\xac\x31\x70\x37\x84\xa1\x4c\x66\xa2\x58\x65\x66\xba\x78\x74\x33\xe5\x2b\x9c\x69\xfc\x42\x4b\xdb\x50\xe4\x7a\xd8\x6c\x25\x8e\x65\x92\x9d\xeb\xf5\xca\x90\xf0\xd5\xd5\x45\x87\x9a\x35\x16\x07\x11\x41\xce\xd6\x7e\x99\x71\xde\xa5\xd2\xcb\x2c\xb7\xb5\xe5\x09\x02\x8b\xed\xb1\xb6\x93\xa7\x24\x1f\x35\x7a\x97\xd6\xc3\xf8\x45\xf0\x7c\x16\x41\x8e\x33\xde\x31\x7b\x9b\xab\x2c\x5f\xf3\x14\xbf\x83\xad\x27\x75\xd5\x95\x65\x3d\x43\xae\xb5\x38\x26\xbb\x53\xe0\x17\xd4\xe7\xf4\xcb\x9a\xbb\xf1\x97\x25\x31\x20\x21\xa3\x20\xca\x6a\xab\x84\xe1\x6c\x8c\xbe\xf5\x58\x64\x63\xeb\x4e\xc3\xd8\x20\xd3\x17\xa9\x49\xa6\x59\x9e\x13\x9b\xb1\x2c\xa7\x76\x76\x2d\x82\x68\x65\xf7\x2d\x62\xee\xb2\x2c\x4d\x72\xad\xb3\x15\x2b\x70\xd6\xa6\xac\x89\xb2\x72\x42\x37\x75\x07\xe6\xad\xb7\x99\x7d\xb3\x45\x56\xb6\xc8\x6a\xac\x26\xac\x81\x97\x03\x96\x5b\x88\xa2\xc4\x8a\x17\x61\xdf\x5e\x70\xf3\x3a\xec\xd8\x57\x73\xb8\x62\x8b\x38\x5e\x90\x05\xb9\x21\xe3\x09\xa5\x74\x78\x15\xc7\x57\x7d\x66\xf1\x80\x74\x43\xb9\x02\x45\xe3\x98\xac\xd8\x15\xc5\x9a\x6e\xd9\xac\xde\xf3\x2c\x6f\x3c\xb7\x31\xc3\x8a\xd6\x03\xb9\xb0\x93\x30\x76\x60\x0e\x61\x02\x02\x0c\x4d\x92\xb9\xd2\x8f\xb2\xe9\xa2\x81\x66\x39\xdd\x98\x31\x9f\xb4\xb0\x6c\x63\x4c\x01\xa3\x10\x0e\x86\x96\x25\xa5\xf5\xbc\x2c\x1d\x9a\x47\xd4\x32\x6c\xe6\x65\x6d\x7c\x52\x15\xc8\xea\xe9\xb2\xa8\xa4\x89\xec\x35\x64\x74\xd3\xaf\x72\x6a\x5b\x12\x32\x28\x5c\xf5\x53\x0b\xe1\x63\x35\x01\x03\xc2\x01\xb9\x1b\x58\x9f\xb1\xa9\x87\x71\xb7\x11\xa6\x08\xa0\x73\x96\x27\x08\xb0\x15\x7e\x8b\xe3\x48\xe1\x94\xd5\xa4\x60\x5e\x4d\xfb\x1c\xa2\xb3\xb3\xec\x3a\x13\x26\xa2\x23\x9e\x68\x5e\xa8\xfc\x8a\x93\x79\xe2\x53\x69\x62\x16\x5c\xb6\x29\x93\xf6\x98\x04\x0c\xf6\xb2\xa4\xb0\xfb\xd9\x4f\x7d\xf8\x4e\xd3\x46\xcd\x5d\x35\xfa\x2e\x33\x03\x19\xc9\xf7\x2b\x74\x03\xe9\xa8\xb7\x2c\xc8\xd4\xed\x25\x9c\x33\x3b\x91\x36\x35\x14\x60\x7a\xa4\x5d\x6b\x19\x64\x34\xcd\x08\x2d\xeb\x15\x3c\xaf\x57\x50\x32\x53\x11\xc2\x31\xf7\x7b\x76\x62\xe7\xfa\x4a\x89\x59\x6f\x60\x91\x13\x62\x12\x5e\x21\x61\x26\xd7\x79\x0e\x35\x02\xe0\x4d\x14\x59\xd7\x96\xb8\xae\xc4\x31\xe1\x15\x2a\x08\x38\x8d\x23\x2e\x70\x2d\x80\xeb\x4d\x57\x85\xd4\x8f\x66\x3a\xe4\xbb\xd8\xc4\xd5\x60\xc1\xe9\xed\xed\x8a\x7b\xea\xf4\x76\xc1\x7b\xa1\xf9\xde\x4c\xf1\xa2\x27\x95\xe9\xad\xb4\xba\x12\x33\xde\xcb\x7a\xff\x82\x85\xff\xa5\xe7\xea\x8a\xaa\xd9\x9a\x96\x8e\x4e\xae\x89\x84\x7a\x00\xae\x8d\x26\xdc\x59\x7c\xef\xe0\xce\x17\x3c\xd0\x2d\x8d\xe0\xb8\x3b\x63\xd3\xa1\x63\x00\xf0\x6b\x00\x51\x35\x52\x0e\x41\x13\x3e\x36\x16\x52\xd6\xb9\x79\x99\x2d\xf9\x84\x29\x07\x18\xc0\x13\x0b\x71\xcc\xe0\xcf\x73\x35\xad\x76\x75\xbf\x9e\xa9\xd6\x24\x3b\x00\x6d\x4e\x31\xdd\xef\x0b\x4d\x55\x4a\xbe\x6c\x56\xab\x19\x75\xbd\xb3\x94\xdf\x4e\x6b\x26\x7b\x7e\x6f\x75\x55\x5f\x03\xdb\x75\xcd\xbf\x59\xc4\xfe\x5c\x4d\x53\x33\x1e\x4c\xca\xe1\x49\x4f\xc8\x9e\xc1\xae\x23\x1a\x7f\xae\xa6\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
+34 -10
View File
@@ -37,7 +37,7 @@
</template>
<script>
import { mapActions, mapGetters } from 'vuex'
import { mapActions, mapGetters, mapMutations } from 'vuex'
import SettingsBundle from './SettingsBundle.vue'
export default {
name: 'SettingsApp',
@@ -49,7 +49,7 @@ export default {
}
},
computed: {
...mapGetters(['settingsValuesLoaded']),
...mapGetters(['settingsValuesLoaded', 'getNavItems']),
...mapGetters('Settings', [
'extensions',
'initialized',
@@ -59,13 +59,7 @@ export default {
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'
} else if (this.selectedExtension === 'ocis-test') {
return 'Test'
}
return this.selectedExtension
return this.getExtensionName(this.selectedExtension)
},
selectedSettingsBundles () {
if (this.selectedExtension) {
@@ -76,6 +70,7 @@ export default {
},
methods: {
...mapActions('Settings', ['initialize']),
...mapMutations(['ADD_NAV_ITEM']),
resetSelectedExtension () {
if (this.extensions.length > 0) {
if (this.extensionRouteParam && this.extensions.includes(this.extensionRouteParam)) {
@@ -84,14 +79,43 @@ export default {
this.selectedExtension = this.extensions[0]
}
}
},
resetMenuItems () {
this.extensions.forEach(extension => {
/*
* TODO:
* a) set up a map with possible extensions and icons?
* or b) let extensions register app info like displayName + icon?
*/
const navItem = {
name: this.getExtensionName(extension),
iconMaterial: 'application',
route: {
name: 'settings',
path: `/${extension}`
}
}
this.ADD_NAV_ITEM({
extension: 'settings',
navItem
})
})
console.log(this.getNavItems('settings'))
},
getExtensionName (extension) {
switch (extension) {
case 'ocis-accounts': return this.$gettext('Account')
case 'ocis-hello': return this.$gettext('Hello')
default: return extension
}
}
},
async created () {
await this.initialize()
this.resetSelectedExtension()
},
watch: {
initialized () {
this.resetMenuItems()
this.resetSelectedExtension()
},
extensionRouteParam () {