diff --git a/deploy/helm_charts/envs/climate_trace.yaml b/deploy/helm_charts/envs/climate_trace.yaml deleted file mode 100644 index 0e3acf30a5..0000000000 --- a/deploy/helm_charts/envs/climate_trace.yaml +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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. - -# DNS -ip: 34.107.228.109 -domain: climatetrace.datacommons.org - -# Helm config -project: datcom-mixer-encode -cluster_prefix: datacommons - -namespace: - name: website - -website: - flaskEnv: climate_trace - replicas: 4 - -mixer: - useBaseBigtable: false - useBranchBigtable: false - useCustomBigtable: true - remoteMixerDomain: https://api.datacommons.org - -serviceAccount: - name: website-ksa - -nl: - enabled: true - env: - default_indexes: - - medium_ft - enabled_indexes: - - medium_ft - -serviceGroups: - recon: null - svg: - replicas: 2 - observation: - replicas: 2 - node: - replicas: 2 - default: - replicas: 2 - -kgStoreConfig: - customBigtableInfo: | - project: datcom-mixer-encode - instance: dc-graph - tables: - - climatetrace_2023_06_03_11_32_41 - -svg: - blocklistFile: ["dc/g/Uncategorized", "oecd/g/OECD"] diff --git a/deploy/helm_charts/envs/techsoup.yaml b/deploy/helm_charts/envs/techsoup.yaml deleted file mode 100644 index 4ab92dd7b9..0000000000 --- a/deploy/helm_charts/envs/techsoup.yaml +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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. - -# Helm config -project: techsoup-data-commons -cluster_prefix: datacommons - -namespace: - name: website - -website: - image: - project: techsoup-data-commons - tag: f5bad76 - flaskEnv: custom - replicas: 1 - -ingress: - enabled: true - -mixer: - useBranchBigtable: false - useCustomBigtable: true - -serviceAccount: - name: website-ksa - -nl: - enabled: false - -serviceGroups: - recon: null - svg: null - observation: null - node: null - default: - replicas: 1 - cacheSVG: true - resources: - memoryRequest: "8G" - memoryLimit: "8G" - -kgStoreConfig: - customBigtableInfo: | - project: techsoup-data-commons - instance: dc-graph - tables: - - freemeals_2023_04_11_14_09_49 - - mealsites_2023_05_25_20_51_17 - - usda_grocery_access_2023_05_22_11_28_04 - -svg: - blocklistFile: ["dc/g/Uncategorized", "oecd/g/OECD"] diff --git a/deploy/helm_charts/envs/worldbank.yaml b/deploy/helm_charts/envs/worldbank.yaml deleted file mode 100644 index 8c6e5c9928..0000000000 --- a/deploy/helm_charts/envs/worldbank.yaml +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 2024 Google LLC -# -# Licensed 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 -# -# https://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. - -# DNS -domain: worldbank.datacommons.org -ip: 35.227.235.65 - -# Helm Config -project: datcom-karnataka -cluster_prefix: "website" - -namespace: - name: "website" - -website: - flaskEnv: worldbank - replicas: 3 - -mixer: - useBaseBigtable: false - useBranchBigtable: false - remoteMixerDomain: https://api.datacommons.org - -ingress: - enabled: true - ipName: website-ip - certName: website-certificate - -serviceAccount: - name: website-ksa - -serviceGroups: - recon: null - svg: null - observation: null - node: null - default: - replicas: 3 - cacheSVG: true # No svg service, this needs to use search - resources: - memoryRequest: "8G" - memoryLimit: "8G" -nl: - enabled: true - env: - default_indexes: - - medium_ft - enabled_indexes: - - medium_ft - - sdg_ft - - undata_ft - -svg: - blocklistFile: ["dc/g/Uncategorized", "oecd/g/OECD"] diff --git a/server/app_env/climate_trace.py b/server/app_env/climate_trace.py deleted file mode 100644 index 0061f02bda..0000000000 --- a/server/app_env/climate_trace.py +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed 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. - -from server.app_env import _base -from server.app_env import local - - -class Config(_base.Config): - CUSTOM = True - NAME = "Climate TRACE Data Commons" - LOGO_PATH = "/custom_dc/climate_trace/logo.svg" - OVERRIDE_CSS_PATH = '/custom_dc/climate_trace/overrides.css' - SHOW_DISASTER = False - - -class LocalConfig(Config, local.Config): - pass \ No newline at end of file diff --git a/server/app_env/worldbank.py b/server/app_env/worldbank.py deleted file mode 100644 index f2d0d80f8a..0000000000 --- a/server/app_env/worldbank.py +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed 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. - -from server.app_env import _base -from server.app_env import local - - -class Config(_base.Config): - CUSTOM = True - NAME = "Data Commons" - OVERRIDE_CSS_PATH = '/custom_dc/custom/overrides.css' - LOGO_PATH = "/custom_dc/worldbank/logo.svg" - SHOW_DISASTER = False - STAT_VAR_HIERARCHY_CONFIG = { - "nodes": [{ - "dcid": "dc/g/Root" - }, { - "dcid": "dc/g/Root", - "dataSourceDcid": "dc/s/WorldBank", - "name": "World Bank" - }] - } - - -class LocalConfig(Config, local.Config): - pass diff --git a/server/templates/custom_dc/climate_trace/homepage.html b/server/templates/custom_dc/climate_trace/homepage.html deleted file mode 100644 index 27218a1968..0000000000 --- a/server/templates/custom_dc/climate_trace/homepage.html +++ /dev/null @@ -1,59 +0,0 @@ -{# - Copyright 2023 Google LLC - - Licensed 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. -#} -{%- extends BASE_HTML -%} - -{% set main_id = 'homepage' %} -{% set page_id = 'page-homepage' %} -{% set title = 'Home' %} -{% set is_hide_full_footer = true %} -{% set is_hide_sub_footer = true %} - -{% block head %} - -{% endblock %} - -{% block content %} -
-
-
-
-

- Climate TRACE Data Commons prototype. -

-
-
-
-
- -
-

{% trans %}Explore the data{% endtrans %}

- -
- -{% endblock %} \ No newline at end of file diff --git a/server/templates/custom_dc/climate_trace/map_examples.json b/server/templates/custom_dc/climate_trace/map_examples.json deleted file mode 100644 index 5cd45147d8..0000000000 --- a/server/templates/custom_dc/climate_trace/map_examples.json +++ /dev/null @@ -1,42 +0,0 @@ -{"map": [ - { - "header": "CO2 emissions from forest fires", - "preposition": "across", - "examples": [ - { - "text": "countries in Earth", - "url": "#%26sv%3DAnnual_Emissions_GreenhouseGas_ForestFire%26pc%3D0%26denom%3DCount_Person%26pd%3DEarth%26ept%3DCountry%26ppt%3DEpaReportingFacility" - } - ] - }, - { - "header": "CO2 emissions from agriculture", - "preposition": "across", - "examples": [ - { - "text": "countries in Earth", - "url": "#%26sv%3DAnnual_Emissions_CarbonDioxide_Agriculture%26pc%3D0%26denom%3DCount_Person%26pd%3DEarth%26ept%3DCountry%26ppt%3DEpaReportingFacility" - } - ] - }, - { - "header": "CO2 emissions from electricity generation", - "preposition": "across", - "examples": [ - { - "text": "countries in Earth", - "url": "#%26sv%3DAnnual_Emissions_CarbonDioxide_ElectricityGeneration%26pc%3D0%26denom%3DCount_Person%26pd%3DEarth%26ept%3DCountry%26ppt%3DEpaReportingFacility" - } - ] - }, - { - "header": "CO2 emissions from manufacturing", - "preposition": "across", - "examples": [ - { - "text": "countries in Earth", - "url": "#%26sv%3DAnnual_Emissions_CarbonDioxide_Manufacturing%26pc%3D0%26denom%3DCount_Person%26pd%3DEarth%26ept%3DCountry%26ppt%3DEpaReportingFacility" - } - ] - } -]} diff --git a/server/templates/custom_dc/climate_trace/scatter_examples.json b/server/templates/custom_dc/climate_trace/scatter_examples.json deleted file mode 100644 index 5cab5d637b..0000000000 --- a/server/templates/custom_dc/climate_trace/scatter_examples.json +++ /dev/null @@ -1,42 +0,0 @@ -{"scatter": [ - { - "header": "Life expectancy vs. Oil and Gas emissions (per capita)", - "preposition": "for countries in", - "examples": [ - { - "text": "Earth", - "url": "#%26svx%3DAnnual_Emissions_GreenhouseGas_OilAndGas%26lx%3D1%26pcx%3D1%26dx%3DCount_Person%26svy%3DLifeExpectancy_Person%26dy%3DCount_Person%26epd%3DEarth%26ept%3DCountry%26dd%3D1" - } - ] - }, - { - "header": "Percentage of population that is college educated vs. CO2 emissions in Domestic Aviation (per capita)", - "preposition": "for countries in", - "examples": [ - { - "text": "Earth", - "url": "#%26svx%3DAnnual_Emissions_CarbonDioxide_FuelCombustionForDomesticAviation%26lx%3D1%26pcx%3D1%26dx%3DCount_Person%26svy%3DCount_Person_25OrMoreYears_BachelorsDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears%26dy%3DCount_Person%26epd%3DEarth%26ept%3DCountry%26dd%3D1" - } - ] - }, - { - "header": "Fertility rate vs. CO2 emissions from Power Sector (per capita)", - "preposition": "for countries in", - "examples": [ - { - "text": "Earth", - "url": "#%26svx%3DAnnual_Emissions_CarbonDioxide_Power%26lx%3D1%26pcx%3D1%26dx%3DCount_Person%26svy%3DFertilityRate_Person_Female%26dy%3DCount_Person%26epd%3DEarth%26ept%3DCountry%26dd%3D1" - } - ] - }, - { - "header": "Mobile subscriptions (per capita) vs. Greenhouse gas emissions for Electricity Generation (per capita)", - "preposition": "for countries in", - "examples": [ - { - "text": "Earth", - "url": "#%26svx%3DAnnual_Emissions_GreenhouseGas_ElectricityGenerationFromThermalPowerPlant%26lx%3D1%26pcx%3D1%26dx%3DCount_Person%26svy%3DCount_Product_MobileCellularSubscription_AsFractionOf_Count_Person%26dy%3DCount_Person%26epd%3DEarth%26ept%3DCountry%26dd%3D1" - } - ] - } -]} diff --git a/server/templates/custom_dc/climate_trace/timeline_examples.json b/server/templates/custom_dc/climate_trace/timeline_examples.json deleted file mode 100644 index c63c5ed0db..0000000000 --- a/server/templates/custom_dc/climate_trace/timeline_examples.json +++ /dev/null @@ -1,42 +0,0 @@ -{"timeline": [ - { - "header": "CO2 emissions in Manufacturing", - "preposition": "for", - "examples": [ - { - "text": "India, China, US", - "url": "#place=country%2FUSA%2Ccountry%2FIND%2Ccountry%2FCHN&statsVar=Annual_Emissions_CarbonDioxide_Manufacturing" - } - ] - }, - { - "header": "CO2 emissions in Steel Manufacturing", - "preposition": "for", - "examples": [ - { - "text": "Japan, China, US, Germany", - "url": "#place=country%2FDEU%2Ccountry%2FGBR%2Ccountry%2FJPN%2Ccountry%2FCHN&statsVar=Annual_Emissions_CarbonDioxide_SteelManufacturing&chart=%7B%22amount%22%3A%7B%22pc%22%3Atrue%7D%7D" - } - ] - }, - { - "header": "CO2 emissions for Road Transportation (per capita)", - "preposition": "for", - "examples": [ - { - "text": "India, China, US, Germany", - "url": "#place=country%2FUSA%2Ccountry%2FIND%2Ccountry%2FCHN%2Ccountry%2FDEU&statsVar=Annual_Emissions_CarbonDioxide_FuelCombustionForRoadVehicles&chart=%7B%22amount%22%3A%7B%22pc%22%3Atrue%7D%7D" - } - ] - }, - { - "header": "CO2 emissions in Power Generation (per capita)", - "preposition": "for", - "examples": [ - { - "text": "India, China, Germany, US, UK", - "url": "#place=country%2FDEU%2Ccountry%2FGBR%2Ccountry%2FJPN%2Ccountry%2FCHN%2Ccountry%2FIND&statsVar=Annual_Emissions_CarbonDioxide_Power&chart=%7B%22amount%22%3A%7B%22pc%22%3Atrue%7D%7D" - } - ] - } -]} diff --git a/server/templates/custom_dc/worldbank/homepage.html b/server/templates/custom_dc/worldbank/homepage.html deleted file mode 100644 index dd6a54ccff..0000000000 --- a/server/templates/custom_dc/worldbank/homepage.html +++ /dev/null @@ -1,41 +0,0 @@ -{#- - Copyright 2024 Google LLC - - Licensed 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. --#} - - -{%- extends BASE_HTML -%} - -{% set main_id = 'homepage' %} -{% set page_id = 'page-homepage' %} -{% set title = 'Home' %} -{% set is_hide_full_footer = true %} -{% set is_hide_sub_footer = true %} - -{% block head %} - - - -{% endblock %} - -{% block content %} -
-

Explore World Bank Data

-
-
-
-
-
- -{% endblock %} \ No newline at end of file diff --git a/static/custom_dc/climate_trace/logo.svg b/static/custom_dc/climate_trace/logo.svg deleted file mode 100644 index 2bbfae9c71..0000000000 --- a/static/custom_dc/climate_trace/logo.svg +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/static/custom_dc/climate_trace/overrides.css b/static/custom_dc/climate_trace/overrides.css deleted file mode 100644 index a217bf4837..0000000000 --- a/static/custom_dc/climate_trace/overrides.css +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright 2022 Google LLC - * - * Licensed 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. - */ - -:root { - --dc-primary: #110c45; - --link-color: #4c49b0; - --footer-background: white; - --dc-red-fade: #40d4e033; -} - -#main-header { - background: white; - box-shadow: 0 5px 5px 0 rgba(6, 6, 6, 0.18); - z-index: 10; -} - -#main-nav a { - color: var(--dc-primary) !important; -} - -.btn.btn-primary { - background-color: var(--dc-primary); -} - -#main-pane #explore { - background-color: var(--dc-primary); -} - -#main-pane #plot-container { - background: none; -} - -#main-footer { - border-top: 1px solid #efefef; -} diff --git a/static/custom_dc/worldbank/logo.svg b/static/custom_dc/worldbank/logo.svg deleted file mode 100644 index fe84bf9965..0000000000 --- a/static/custom_dc/worldbank/logo.svg +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - -