Skip to content

Instantly share code, notes, and snippets.

View TinsFox's full-sized avatar

TinsFox

View GitHub Profile
@TinsFox
TinsFox / rsbuild.config.ts
Last active August 1, 2025 15:30
bunder config of vite and rsbuild
import { defineConfig, loadEnv } from '@rsbuild/core';
import { pluginLess } from '@rsbuild/plugin-less';
import { pluginReact } from '@rsbuild/plugin-react';
import { getGitHash } from './scripts/lib';
const { publicVars } = loadEnv({ prefixes: ['VITE_'] });
// console.log('env', loadEnv());
export default defineConfig({
@TinsFox
TinsFox / utilities.css
Created May 11, 2024 02:49
simple tailwindcss utilities
.pointer-events-none { pointer-events : none }
.pointer-events-auto { pointer-events : auto }
.visible { visibility : visible }
.invisible { visibility : hidden }
.collapse { visibility : collapse }
.static { position : static }
.fixed { position : fixed }
.absolute { position : absolute }
.relative { position : relative }
.sticky { position : sticky }
@TinsFox
TinsFox / index.html
Created November 23, 2023 10:06
electron 调用系统能力
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style type="text/css">
.webview {
height: 945px;