This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SheetsController < ApplicationController | |
| before_action :check_redirect | |
| def show | |
| @sheet = Sheet.find(sheet_params[:id]) | |
| end | |
| private | |
| def sheet_params |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --primary: #FFF2EF; | |
| --accent: #E7D27C; | |
| --background: #4A5664; | |
| --background-elevated: #3F4955; | |
| --background-hover: #AAA388; | |
| --sidebar-background: #1a2129; | |
| --border-dim: #666; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener("DOMContentLoaded", function() { // eslint-disable-line | |
| // Then get its webviews | |
| let webviews = document.querySelectorAll(".TeamView webview"); | |
| // Fetch our CSS in parallel ahead of time | |
| const cssURI = 'https://gist.githubusercontent.com/verpag/57572596dbe50f042bf3551752bd46d7/raw/c3118d62df13653c08af550a8a2d7a4152e659d8/custom.css'; | |
| let cssPromise = fetch(cssURI).then(response => response.text()); | |
| // Then wait for the views to load | |
| webviews.forEach(webview => { |