Hello world
This is the content from the Gist 286211f2, loaded using this loader.
/** | |
* From a message, click on "more" and "message headers" | |
* | |
* Run this command. | |
*/ | |
var extractEmailHeaders = (selector = 'pre') => { | |
const elRef = document.querySelector(selector) | |
const headers = new Map() | |
const eachLineHeaderNameParts = [] | |
var extractHeaderName = (input) => { |
This is the content from the Gist 286211f2, loaded using this loader.
This was logic written in a pregnancy scheduling mini web app that I wanted to separate the date range out.
This does. Just run this when you’ve selected the filter criteria you want, then paste this in developer tool. It'll transform the transaction button with "Download CSV". A date range and you want those transactions as CSV, with transaction number and only amounts, no formatting: so you can use your spreadsheet to manage that data.
Furthermore, RBC’s OMNI Team; What would be even cooler is if when we filter the transactions with criterias. When we click to view an item, like a Cheque image, when we click "Back" on the browser, we don’t lose the search we had. Like it currently does. That would be easily possible if the URL kept the filter criterias. This changes browser history, and allows to use the Back button *for free*. But the FrontEnd code doesn’t do that. And that Gist’s content isn't covering this problem — But I might tackle that one too some day.
This does. Just run this when you’ve selected a date range and you want those transactions as CSV
import { LitElement, html, TemplateResult } from 'lit' | |
import { property } from 'lit/decorators/property.js' | |
import { state } from 'lit/decorators/state.js' | |
import { assert } from '@esm-bundle/chai' | |
import { ContextProvider, createContext } from '../context.js' | |
import { ContextConsumer } from '../lib/controllers/context-consumer.js' |
import { html } from 'lit' | |
import { unsafeSVG } from 'lit/directives/unsafe-svg.js' | |
import { dirname } from 'path' | |
import { readFile } from 'fs/promises' | |
import { Plugin } from 'vite' | |
import { URL } from 'url' // in Browser, the URL in native accessible on window | |
export const svgLoader = (): Plugin => { | |
const svgRegex = /\.svg(\?(raw|url|component))?$/ |
locale: en-CA title: Example of a Page rendered within an application layout customElement and rendered client-side from raw markdown hosted on a GitHub Gist canonical: https://renoirb.github.io/blogtini/using-app-layout.html date: &createdAt '2023-02-19T13:44:11-04:00' createdAt: *createdAt categories: