Merge pull request #34 from owncloud/use-phoenix-server-url

This commit is contained in:
Alex Unger
2020-07-16 09:25:00 +02:00
committed by GitHub
7 changed files with 17 additions and 12 deletions
@@ -0,0 +1,5 @@
Change: Use server config variable from ocis-web
We are not providing an api url anymore but use the server url from ocis-web config instead. This still - as before - requires that ocis-proxy is in place for routing requests to ocis-settings.
https://github.com/owncloud/ocis-settings/pull/34
+3 -1
View File
@@ -59,9 +59,11 @@
"> 1%",
"not dead"
],
"peerDependencies": {
"owncloud-design-system": "^1.7.0"
},
"dependencies": {
"lodash": "^4.17.15",
"owncloud-design-system": "^1.6.0",
"vuex": "^3.2.0"
}
}
+3 -3
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -161,7 +161,7 @@ func Server(cfg *config.Config) *cli.Command {
gr.Add(server.Run, func(_ error) {
logger.Info().
Str("server", "http").
Str("server", "grpc").
Msg("Shutting down server")
cancel()
+1 -1
View File
@@ -46,7 +46,7 @@ func Server(opts ...Option) http.Service {
)
mux.Use(middleware.Version(
"settings",
options.Name,
version.String,
))
+1 -4
View File
@@ -12,10 +12,7 @@ const appInfo = {
id: 'settings',
icon: 'application',
isFileEditor: false,
extensions: [],
config: {
url: 'https://localhost:9200'
}
extensions: []
}
const routes = [
+3 -2
View File
@@ -48,6 +48,7 @@ const mutations = {
}
const actions = {
// Used by ocis-web.
loadConfig ({ commit }, config) {
commit('LOAD_CONFIG', config)
},
@@ -60,7 +61,7 @@ const actions = {
async fetchSettingsBundles ({ commit, dispatch, getters, rootGetters }) {
injectAuthToken(rootGetters)
const response = await BundleService_ListSettingsBundles({
$domain: getters.config.url,
$domain: rootGetters.configuration.server,
body: {}
})
if (response.status === 201) {
@@ -100,7 +101,7 @@ const actions = {
async saveSettingsValue ({ commit, dispatch, getters, rootGetters }, payload) {
injectAuthToken(rootGetters)
const response = await ValueService_SaveSettingsValue({
$domain: getters.config.url,
$domain: rootGetters.configuration.server,
body: {
settingsValue: payload
}