update tw

This commit is contained in:
Nate Kelley 2025-02-18 11:00:01 -07:00
parent 84f3687059
commit ca87439d8b
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
6 changed files with 525 additions and 427 deletions

904
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,6 +28,7 @@
"@supabase/auth-helpers-react": "^0.5.0", "@supabase/auth-helpers-react": "^0.5.0",
"@supabase/ssr": "^0.5.2", "@supabase/ssr": "^0.5.2",
"@supabase/supabase-js": "^2.48.1", "@supabase/supabase-js": "^2.48.1",
"@tailwindcss/postcss": "^4.0.7",
"@tanstack/react-query": "^5.65.1", "@tanstack/react-query": "^5.65.1",
"@vercel/speed-insights": "^1.1.0", "@vercel/speed-insights": "^1.1.0",
"ahooks": "^3.8.4", "ahooks": "^3.8.4",
@ -128,9 +129,9 @@
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",
"monaco-editor-webpack-plugin": "^7.1.0", "monaco-editor-webpack-plugin": "^7.1.0",
"postcss": "~8", "postcss": "^8.5.2",
"sass": "^1.83.4", "sass": "^1.83.4",
"tailwindcss": "^3.4.17", "tailwindcss": "^4.0.7",
"ts-jest": "^29.2.5", "ts-jest": "^29.2.5",
"typescript": "^5" "typescript": "^5"
}, },

View File

@ -1,8 +1,8 @@
/** @type {import('postcss-load-config').Config} */ /** @type {import('postcss-load-config').Config} */
const config = { const config = {
plugins: { plugins: {
tailwindcss: {}, '@tailwindcss/postcss': {}
}, }
}; };
export default config; export default config;

View File

@ -1,6 +1,4 @@
@tailwind base; @import 'tailwindcss';
@tailwind components;
@tailwind utilities;
@layer base { @layer base {
img { img {

View File

@ -1,4 +1,3 @@
import type { Config } from 'tailwindcss';
import colors from 'tailwindcss/colors'; import colors from 'tailwindcss/colors';
// @ts-ignore // @ts-ignore
@ -129,4 +128,4 @@ const config = {
}; };
export default config; export default config;
export { config, colors as tailwindColors, busterColors, busterColorsDark }; export { config, colors as tailwindColors };

32
web/update_icon_files.py Normal file
View File

@ -0,0 +1,32 @@
import os
import re
def update_icon_files():
# Directory containing the icon files
base_dir = 'src/components/icons'
# Walk through all subdirectories
for root, dirs, files in os.walk(base_dir):
for file in files:
if file.startswith('I12px_') and file.endswith('.tsx'):
file_path = os.path.join(root, file)
# Read the file content
with open(file_path, 'r') as f:
content = f.read()
# Make the replacements
# Replace "function " with "function I12px_"
content = re.sub(r'function (?!I12px_)', 'function I12px_', content)
# Replace "export default " with "export default I12px_"
content = re.sub(r'export default (?!I12px_)', 'export default I12px_', content)
# Write the updated content back to the file
with open(file_path, 'w') as f:
f.write(content)
print(f"Updated {file_path}")
if __name__ == "__main__":
update_icon_files()