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
// A BrowserView can be used to embed additional web content into a BrowserWindow. | |
// It is like a child window, except that it is positioned relative to its owning | |
// window. It is meant to be an alternative to the webview tag. | |
// | |
// For more info, see: | |
// https://electronjs.org/docs/api/browser-view | |
// In the main process. | |
const { BrowserView, BrowserWindow, app, Menu, MenuItem } = require('electron/main') |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | |
<title>Hello World!</title> | |
</head> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> --> | |
<title>Hello World!</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
</head> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> | |
<link rel="stylesheet" href="style.css" /> | |
</head> |
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 typescript from "@rollup/plugin-typescript"; | |
import {TanStackRouterVite} from "@tanstack/router-plugin/vite"; | |
import react from "@vitejs/plugin-react"; | |
import {defineConfig, externalizeDepsPlugin} from "electron-vite"; | |
import {existsSync} from "fs"; | |
import {mkdir, rm, writeFile} from "fs/promises"; | |
import {copyFile} from "node:fs/promises"; | |
import {resolve} from "path"; | |
import {IProduct} from "./src/platform/product/common/product-service.interface.js"; |
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 { toBadgerfish } from '#util/badgerfish/to_badgerfish' | |
import { JsonObject } from '#util/badgerfish/types' | |
import { Parser } from 'xml2js' | |
/** | |
* Convert XML to Badgerfish JSON convention | |
* @param {string} xml | |
* @returns {Promise<JsonObject>} | |
*/ | |
export async function fromXml(xml: string) { |
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
$issues = gh issue list -s all -L 500 --json number | ConvertFrom-Json | |
foreach ($issue in $issues) { | |
$issueNumber = $issue.number | |
gh issue transfer $issueNumber https://github.com/<your-org>/<your-repo> | |
} |
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
{ | |
"typescript": { | |
"ifStatement.useBraces": "preferNone", | |
"newLineKind": "lf", | |
"preferHanging": true, | |
"singleBodyPosition": "nextLine", | |
"useBraces": "preferNone", | |
"bracePosition": "sameLineUnlessHanging", | |
"arrowFunction.useParentheses": "force", | |
"arguments.preferHanging": "always", |
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
// Get the parent element by its class names | |
const parentElement = document.querySelector('.css-1rw37je.eu4oa1w0'); | |
// Check if the parent element exists | |
if (parentElement) { | |
// Get all the child spans of the parent element | |
const childSpans = parentElement.querySelectorAll('span'); | |
// Create an array to store the words | |
const wordsArray = []; |
NewerOlder