| /* |
| 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 OAuth example |
| apache: { |
| name: "Apache OAuth", |
| oauth_portal: "https://oauth.apache.org/", |
| oauth_url: "https://oauth.apache.org/token", |
| fullname_key: 'fullname', |
| email_key: 'email' |
| }, |
| */ |
| /* Google example |
| 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: 'your.google.app.id.here' |
| }, |
| */ |
| /* GitHub example |
| * Remember to edit site/api/lib/config.lua and add GitHub to the oauth_fields array! |
| github: { |
| name: "GitHub OAuth", |
| oauth_portal: "https://github.com/login/oauth/authorize", |
| oauth_url: "https://github.com/login/oauth/access_token", |
| fullname_key: 'name', |
| email_key: 'email', |
| construct: true, // needed for GitHub |
| client_id: 'your.github.app.id.here', |
| scope: "user:email" |
| } |
| */ |
| }, |
| persona: { |
| enabled: true // Is Mozilla Persona something we'd use? |
| }, |
| 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 |
| } |
| |
| |
| |
| // Localized preferences (defaults) |
| var prefs = { |
| displayMode: 'threaded', // threaded or flat |
| groupBy: 'thread', // thread or date |
| sortOrder: 'forward', // forward or reverse sort |
| compactQuotes: 'yes', // 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'] |