Skip to content

Commit

Permalink
Merge pull request #777 from CirclesUBI/style-update
Browse files Browse the repository at this point in the history
Update the app style to the new Circles branding
  • Loading branch information
jaensen authored May 15, 2024
2 parents ada631c + 02be4ee commit c6fcc9e
Show file tree
Hide file tree
Showing 33 changed files with 3,740 additions and 468 deletions.
Binary file added assets/fonts/DMSans-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/DMSans-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/DMSans-Light.ttf
Binary file not shown.
Binary file added assets/fonts/DMSans-LightItalic.ttf
Binary file not shown.
Binary file added assets/fonts/DMSans-Medium.ttf
Binary file not shown.
Binary file added assets/fonts/DMSans-MediumItalic.ttf
Binary file not shown.
Binary file added assets/fonts/DMSans-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/DMSans-SemiBold.ttf
Binary file not shown.
Binary file added assets/fonts/DMSans-SemiBoldItalic.ttf
Binary file not shown.
Binary file added assets/images/illustration-own-economy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/illustration-shared-wallets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/illustration-web-of-trust.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions find.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Directory to search
search_dir="$1"

# Temporary file for results
temp_file="imports_found.txt"

# Clear previous results
> "$temp_file"

# Find all .js files and extract relevant imports from ~/components
find "$search_dir" -name '*.js' | while read -r file; do
# Grep for import statements that pull from ~/components
grep -o "import .* from '~/components/.*'" "$file" | while read -r import_line; do
echo "$file: $import_line" >> "$temp_file"
done
done

# Output the results
cat "$temp_file"
29 changes: 29 additions & 0 deletions group_imports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import re
from collections import defaultdict

# Path to the temporary file generated by the bash script
temp_file = 'imports_found.txt'
report_file = 'mui_usage.txt'

# Dictionary to hold the mapping of component to file paths
imports_dict = defaultdict(set)

# Regular expression to extract components from new import style
component_regex = re.compile(r"import\s+([^\s]+)\s+from\s+'~/components/")

# Read the temporary file and populate the dictionary
with open(temp_file, 'r') as file:
for line in file:
filepath, import_statement = line.split(':')
component_match = component_regex.search(import_statement)
if component_match:
component = component_match.group(1)
imports_dict[component].add(filepath.strip())

# Writing to the report file, sorted alphabetically
with open(report_file, 'w') as file:
for component in sorted(imports_dict):
file.write(f"{component}\n")
for filepath in sorted(imports_dict[component]):
file.write(f" - {filepath}\n")
file.write("\n")
Loading

0 comments on commit c6fcc9e

Please sign in to comment.