This file contains 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
// Components | |
// | |
$border-radius: .5rem; | |
$border-radius-lg: .7rem; | |
$border-radius-sm: .3rem; | |
// Buttons | |
// |
This file contains 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
const fs = require("fs"); | |
const path = require("path"); | |
const svgToJsx = require("svg-to-jsx"); | |
const parser = require("fast-xml-parser"); | |
let componentCodes = []; | |
function main() { | |
const dir = fs.readdirSync("."); | |
dir.forEach(file => { |
This file contains 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
[source:/bsw/trunk/Web/Link/To/file.html] |
This file contains 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
const params = {type: "G6.USID", key: "AllgFilter", listPkey: "~ 000G6.USID"}; | |
const query = Object.keys(params) | |
.map(k => encodeURIComponent(k) + "=" + encodeURIComponent(params[k])) | |
.join("&") | |
// Will become: type=G6.USID&key=AllgFilter&listPkey=~%20%20%20000G6.USID | |
// Usage |
This file contains 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
let queries = [] | |
const rows = document.querySelectorAll(".TimelineItem-body .Box-row") | |
for (const r of rows) { | |
const label = r.querySelector(".Details .Link--primary") | |
const link = r.querySelector("a.BtnGroup-item") | |
const splitted = link.href.split("/") | |
queries.push(`${label.innerText}<br><code>git cherry-pick ${splitted[splitted.length - 1]}</code>`) | |
} |
This file contains 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
const rows = document.querySelectorAll("div[data-target='branch-filter.result'] .Box-row") | |
for (const r of rows) { | |
const stateEl = r.querySelector(".State") | |
if (stateEl && (stateEl.title.includes("Merged") || stateEl.title.includes("Closed"))) { | |
r.querySelector(`button[data-target="branch-filter-item.destroyButton"]`).click() | |
} | |
//confirm("Continue?") | |
} |
This file contains 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
// Use this together with this browser extension (Chrome/Edge) and enable it for GitHub: | |
// https://chrome.google.com/webstore/detail/custom-javascript-for-web/ddbjnfjiigjmcpcpkmhogomapikjbjdk | |
// The following code checks if your branch you want to merge, contains "lts-" | |
// and offers to set the correct base branch. | |
if (location.pathname.includes("/bruegmann/florence/compare/")) { | |
let params = location.pathname.split("/") | |
let compareBranchs = params[params.length - 1].split("...") | |
This file contains 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
// Use this together with this browser extension (Chrome/Edge) and enable it for https://icons.getbootstrap.com: | |
// https://chrome.google.com/webstore/detail/custom-javascript-for-web/ddbjnfjiigjmcpcpkmhogomapikjbjdk | |
/** | |
* This code adds a switch checkbox on the Bootstrap Icons pages. | |
* For example on: https://icons.getbootstrap.com/icons/x-lg/ | |
* If enabled, the SVG code will be changed to use `1em` for width and height instead of `16`(px). | |
*/ | |
if (location.pathname.startsWith("/icons/")) { |
This file contains 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
@import "~bootstrap/scss/mixins"; | |
/** | |
CSS Elements Queries (https://github.com/marcj/css-element-queries) support for Bootstrap's Grid System. | |
Just add the class name ".element-query" to the parent element. | |
*/ | |
@mixin make-grid-columns-eq( | |
$columns: $grid-columns, | |
$gutter: $grid-gutter-width, |
This file contains 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
{ | |
"useTabs": true, | |
"singleQuote": false, | |
"trailingComma": "none", | |
"printWidth": 100, | |
"plugins": ["prettier-plugin-svelte"], | |
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }], | |
"tabWidth": 4, | |
"semi": false | |
} |
OlderNewer