-
Notifications
You must be signed in to change notification settings - Fork 1
/
lowdefy.yaml
75 lines (64 loc) · 2.37 KB
/
lowdefy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright (c) 2021 Ujjwal Panda
#
# This is the main configuration file of the Who's Who web app,
# powered by the Lowdefy framework (https://lowdefy.com). All
# YAML and Python files are licensed under the MIT license.
name: whoswho
lowdefy: 3.21.1
licence: MIT License
# Configure the web app to use "about.yaml" as the home page.
config:
homePageId: about
# Appending custom code to the header that will enable
# us to use Google Fonts in our application.
app:
html:
appendHead:
_ref: templates/head.html
# Adding the AgGridAlpine block type. This will be used to
# display the data from the Who's Who database as a dynamic
# table, powered by Javascript. This theme is recommended
# by the AgGrid developers for use with most applications.
types:
AgGridAlpine:
url: https://blocks-cdn.lowdefy.com/v3.12.3/blocks-aggrid/meta/AgGridAlpine.json
# Adding a connection to the Google Sheets API. This is not
# used to display the data, but is used to take inputs via
# a form on the edits page. These inouts are stored in the
# Google Sheet and are added to the main list if the person
# is not already present in the sheet, or if they are present
# but their contact details have changed.
connections:
- id: edit_sheet
type: GoogleSheet
properties:
client_email:
_secret: SHEETS_CLIENT_EMAIL
private_key:
_base64.decode:
_secret: SHEETS_PRIVATE_KEY
spreadsheetId: '1IfzXUU9U4PM5cx3ZbSKk1ye1rPDAF1eqU75wt01_MQM'
sheetId: '892548616'
write: true
# Disabling the default menu. The only reason to do this is
# customizability: the default menu does not take any style
# attributes as input, but any menus that I make will do so.
menus:
- id: default
links: []
# Adding pages to the web app. These are added as references
# to the appropriate YAML files in the pages directory. There
# are four pages in the Who's Who application:
#
# 1. An about page. This describes what the Who's Who is all
# about, how it started, and how to contribute to it.
# 2. The list. This is where the list is displayed as a table.
# 3. The edits form. This is where any user can submit edits
# to the Who's Who database.
# 4. The world map. This is where we display a dynamic world
# map of astrochemists.
pages:
- _ref: pages/about.yaml
- _ref: pages/data.yaml
- _ref: pages/edits.yaml
- _ref: pages/globe.yaml