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
| #!/bin/bash | |
| set -e | |
| # ------------------------- | |
| # DEFAULT CONFIGURATION | |
| # ------------------------- | |
| HOST_IP_DEFAULT=$(hostname -I | awk '{print $1}') | |
| DOMAIN_DEFAULT="$HOST_IP_DEFAULT.sslip.io" | |
| EMAIL_DEFAULT="[email protected]" | |
| ADMIN_USER_DEFAULT="admin" |
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
| import * as ts from "typescript"; | |
| // Input function | |
| const sourceCode = ` | |
| function example() { | |
| let test = 1; | |
| let helloWorld; | |
| const add = (by) => { | |
| test += by; | |
| }; |
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
| diff --git a/node_modules/nx/src/tasks-runner/cache.js b/node_modules/nx/src/tasks-runner/cache.js | |
| index 36a7089..a1b7809 100644 | |
| --- a/node_modules/nx/src/tasks-runner/cache.js | |
| +++ b/node_modules/nx/src/tasks-runner/cache.js | |
| @@ -110,7 +110,8 @@ class DbCache { | |
| } | |
| } | |
| else { | |
| - return ((await this.getPowerpackS3Cache()) ?? | |
| + return ((await this.getPowerpackCache(nxJson.communityCache)) ?? |
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
| <style> | |
| button { cursor: pointer } | |
| label { display: inline-flex; align-items: center; cursor: pointer; user-select: none; } | |
| .cm-editor { height: 100%; } | |
| #loading { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: center; align-items: center; } | |
| #container { display: flex; height: 100vh; } | |
| #left { display: flex; flex: 1; flex-direction: column; border-right: 1px solid #444 } | |
| #editor { flex: 1; overflow-y: auto; } | |
| #panel { height: 20%; overflow-y: auto; padding: 1em; color: #d1d5da; border-top: 1px solid #444!important; } | |
| #right { flex: 1; display:flex; flex-direction: column; min-width: 0; } |
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
| import { CreateDependenciesContext, joinPathFragments } from '@nx/devkit'; | |
| import { execSync } from 'child_process'; | |
| import { hashArray } from 'nx/src/hasher/file-hasher'; | |
| import {getYarnLockfileDependencies, getYarnLockfileNodes} from 'nx/src/plugins/js/lock-file/yarn-parser' | |
| const lockFilePath = process.cwd() + '/bun.lockb'; | |
| let lockFileContents = execSync(`bun ${lockFilePath}`, {maxBuffer: 1024 * 1024 * 10 }).toString(); | |
| const hashed = hashArray(['19.1.0-beta.5', lockFileContents]); | |
| console.log('hashed',hashed); |
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
| diff --git a/node_modules/nx/schemas/nx-schema.json b/node_modules/nx/schemas/nx-schema.json | |
| index 091b7d0..227e128 100644 | |
| --- a/node_modules/nx/schemas/nx-schema.json | |
| +++ b/node_modules/nx/schemas/nx-schema.json | |
| @@ -201,7 +201,7 @@ | |
| "packageManager": { | |
| "type": "string", | |
| "description": "The default package manager to use.", | |
| - "enum": ["yarn", "pnpm", "npm"] | |
| + "enum": ["yarn", "pnpm", "npm", "bun"] |
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
| import * as ts from 'typescript'; | |
| import { readFileSync, writeFileSync, mkdirSync, existsSync } from 'fs'; | |
| import { dirname } from 'path'; | |
| function mergeDeeply(first: ts.ObjectLiteralExpression, second: ts.ObjectLiteralExpression) { | |
| const mergedProperties: ts.ObjectLiteralElementLike[] = []; | |
| // Add properties from first object | |
| for (const prop of first.properties) { | |
| mergedProperties.push(prop); |
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
| * { | |
| cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJBJREFUeNrs2dEKgDAIhWEN3/+VLYtBF12MppHwDxY0uvg4DJpORcSl0bB4uPcwq+oFHu8/956pbtJsAAYMGDBgwIABA044t3pMEgb8VU2XsWdn1o/aUUn4bchPBWNFYWvVidxbCFGmr7YULBs1YDPfsYcXEi9ryvDjAAwYMGDAgAED7nK8bHG7qNLs6nYXYAAheh5j8Qw5fwAAAABJRU5ErkJggg==) 22 22, auto !important; | |
| } |
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
| import { defineConfig } from 'vite'; | |
| import { AngularPlugin } from '@nxext/angular/plugins/angular-vite-compiler'; | |
| export default defineConfig({ | |
| plugins: [ | |
| AngularPlugin(), | |
| ], | |
| resolve: { | |
| preserveSymlinks: true, | |
| }, |
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
| import { AuthClaims, AuthenticationScheme, Identity } from "https://deno.land/x/[email protected]/src/security/authentication/core/mod.ts"; | |
| import { Content } from "https://deno.land/x/[email protected]/mod.ts"; | |
| import { SecurityContext } from "https://deno.land/x/[email protected]/src/security/context/security-context.ts"; | |
| import { verify as verifySignature } from "https://deno.land/x/[email protected]/_signature.ts"; | |
| import { create, decode, getNumericDate } from "https://deno.land/x/[email protected]/mod.ts"; | |
| import { Algorithm } from "https://deno.land/x/[email protected]/_algorithm.ts"; | |
| import { DAYS_30 } from "../../../auth/environmental.ts"; | |
| export const IdentityKey = "__identity_jwt"; | |
| const AuthorizationHeader = "Authorization"; |
NewerOlder