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 type { MetaFunction } from "@remix-run/node"; | |
import React, { useEffect, useRef } from 'react'; | |
import mermaid from 'mermaid'; | |
// | |
type Props = { | |
src: string; | |
className?: string; | |
}; | |
// | |
export function Mermaid({ src, className }: Props) { |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Your Page</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
</head> | |
<body class="bg-gray-100"> | |
<div class="container mx-auto my-2 px-8 py-8"> |
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 serverless = require('serverless-http'); | |
const express = require('express'); | |
const indexRouter = require('./routes/index'); | |
const usersRouter = require('./routes/users'); | |
const app = express(); | |
app.use('/', indexRouter); | |
app.use('/users',usersRouter); | |
module.exports = app; |
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 { component$, useSignal, useStore, useComputed$, useTask$, $ } from '@builder.io/qwik'; | |
import './app.css' | |
// | |
const dataItems = [ | |
{id:1 , title: "title_1"}, | |
{id:2 , title: "title_2"}, | |
{id:3 , title: "title_3"}, | |
]; | |
// |
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
VITE_API_URL="http://localhost:4000" | |
VITE_API_KEY="" |
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
VITE_API_KEY="123" | |
VITE_API_URL=http://localhost:4000 |
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 { defineConfig } from 'vite' | |
import { svelte } from '@sveltejs/vite-plugin-svelte' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [svelte()], | |
build: { | |
lib: { | |
entry: [ | |
'./src/main.ts', |
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 { defineConfig } from 'vite' | |
import vue from '@vitejs/plugin-vue' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [vue()], | |
define: { | |
"process.env.NODE_ENV": '"production"', | |
}, | |
build: { |
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 log4js = require("log4js"); | |
let dt = Date.now(); | |
let LOG_FILE_NAME = "log_" + dt; | |
console.log("dt=", dt); | |
// | |
log4js.configure({ | |
appenders: { | |
cheese: { type: "file", filename: "cheese.log" } , | |
app: { type: "file", filename: `log/${LOG_FILE_NAME}.log` } |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.jsdelivr.net/npm/preact@10.5.13/dist/preact.umd.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/htm/3.0.4/htm.min.js"></script> | |
<script src="https://cdn.tailwindcss.com/3.3.2"></script> | |
<title>Custom Bootstrap Alerts Position</title> | |
</head> |
NewerOlder