blob: 21a0699ce2be9171c92715feda03be7c18a1e2b5 [file] [log] [blame]
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
var pm_config = {
debug: false, // set to true for some debug output
oauth: {
// OAuth settings
apache: {
name: "Apache OAuth",
oauth_portal: "https://oauth.apache.org/",
oauth_url: "https://oauth.apache.org/token",
fullname_key: 'fullname',
email_key: 'email'
},
google: {
name: "Google OAuth",
oauth_portal: "https://accounts.google.com/o/oauth2/auth",
oauth_url: "https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=",
fullname_key: 'name',
email_key: 'email',
client_id: '41983040784-s1gl269f0p537r22h8eai2pdr1a94pfg.apps.googleusercontent.com'
},
github: {
name: "GitHub OAuth",
oauth_portal: "https://github.com/login/oauth/authorize",
client_id: "your-client-id-here",
scope: "user:email",
construct: true
}
},
indexMode: 'table', // front page view mode:
// phonebook: Standard phonebook mode, sort/list by domain name (a.org, b.org, c.org...)
// phonebook_short: Same as above, but sort/list by list name (dev@a.org, dev@.org, user@a.org...)
// table: A more detailed view meant for smaller list sites (<=20-30 lists or such)
shortLists: true, // whether to display foo@bar.org or just foo@ in flat view
shortLinks: true,
trendPie: true,
URLBase: '',
apiURL: '/',
apiSuffix: ''
}
// Localized preferences (defaults)
var prefs = {
displayMode: 'threaded', // threaded or flat
groupBy: 'thread', // thread or date
sortOrder: 'forward', // forward or reverse sort
compactQuotes: true, // Show quotes from original email as compacted blocks?
notifications: 'direct', // Notify on direct or indirect replies to your posts?
hideStats: 'yes', // Hide the email statistics window?
theme: 'default', // Set to 'social' to default to the social theme
loggedIn: false
}
// array of prefs we have now. This is needed in case we change/break the existing
// structure saved in elasticsearch for users. Update when needed!
var pref_keys = ['displayMode','groupBy','sortOrder','compactQuotes','notifications','hideStats','theme', 'fullname', 'autoScale']