mirror of https://github.com/buster-so/buster.git
update tw
This commit is contained in:
parent
84f3687059
commit
ca87439d8b
File diff suppressed because it is too large
Load Diff
|
@ -28,6 +28,7 @@
|
|||
"@supabase/auth-helpers-react": "^0.5.0",
|
||||
"@supabase/ssr": "^0.5.2",
|
||||
"@supabase/supabase-js": "^2.48.1",
|
||||
"@tailwindcss/postcss": "^4.0.7",
|
||||
"@tanstack/react-query": "^5.65.1",
|
||||
"@vercel/speed-insights": "^1.1.0",
|
||||
"ahooks": "^3.8.4",
|
||||
|
@ -128,9 +129,9 @@
|
|||
"jest": "^29.7.0",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
"monaco-editor-webpack-plugin": "^7.1.0",
|
||||
"postcss": "~8",
|
||||
"postcss": "^8.5.2",
|
||||
"sass": "^1.83.4",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"tailwindcss": "^4.0.7",
|
||||
"ts-jest": "^29.2.5",
|
||||
"typescript": "^5"
|
||||
},
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/** @type {import('postcss-load-config').Config} */
|
||||
const config = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
},
|
||||
'@tailwindcss/postcss': {}
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
@import 'tailwindcss';
|
||||
|
||||
@layer base {
|
||||
img {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import type { Config } from 'tailwindcss';
|
||||
import colors from 'tailwindcss/colors';
|
||||
|
||||
// @ts-ignore
|
||||
|
@ -129,4 +128,4 @@ const config = {
|
|||
};
|
||||
|
||||
export default config;
|
||||
export { config, colors as tailwindColors, busterColors, busterColorsDark };
|
||||
export { config, colors as tailwindColors };
|
||||
|
|
|
@ -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()
|
Loading…
Reference in New Issue