From: Ardis Lu Date: Sat, 18 Dec 2021 07:23:59 +0000 (-0800) Subject: Update menu name X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=1ead766e9c7bcef8fd25c11c116a3a9ed4937216;p=sheets-db Update menu name Google's add-on style guide suggests using "Start" for this use case. --- diff --git a/Code.gs b/Code.gs index 4340325..2503450 100644 --- a/Code.gs +++ b/Code.gs @@ -9,7 +9,7 @@ function onOpen() { ui.createMenu('🔥 sheets-db') .addItem('❓ Help', 'showHelp') - .addItem('🟢 Open sidebar', 'openSidebar') + .addItem('🟢 Start', 'showSidebar') .addToUi(); } @@ -20,7 +20,7 @@ function showHelp() { USAGE: - Edit the data on this workbook like you would on any other Google Sheet, noting KEY ASSUMPTIONS below. -- When ready, press the "Open sidebar" button to generate a SQLite database from the data on this workbook! +- When ready, press the "🟢 Start" button to generate a SQLite database from the data on this workbook! KEY ASSUMPTIONS: - Each tab in this workbook is a data table @@ -33,7 +33,7 @@ KEY ASSUMPTIONS: ui.alert('Help', helpMessage, ui.ButtonSet.OK); } -function openSidebar() { +function showSidebar() { const ui = SpreadsheetApp.getUi(); const html = HtmlService.createHtmlOutputFromFile('query-to-db').setTitle('🔥 sheets-db'); ui.showSidebar(html); diff --git a/README.md b/README.md index fa73d4e..92b1d15 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,6 @@ This setup is **NOT** necessary if you only want to generate SQLite databases. 1. Refresh the Google Sheet and wait for the GAS code to finish loading. 2. See the new custom menu button `🔥 sheets-db`. Press `🔥 sheets-db > ❓ Help` for end-user instructions. -3. Press `🔥 sheets-db > 🟢 Open sidebar` to initialize the SQLite sidebar. +3. Press `🔥 sheets-db > 🟢 Start` to initialize the SQLite sidebar. 4. Click the buttons on the sidebar to generate the SQLite database and/or upload the file to Backblaze. 5. Upload the .sqlite3 file to your favorite SQLite client (example: [sqliteviz](https://lana-k.github.io/sqliteviz/#/workspace)), to run queries on the database.