Skip to content

Commit

Permalink
make posthog defer
Browse files Browse the repository at this point in the history
  • Loading branch information
atlanswer committed Aug 9, 2024
1 parent 5bee68f commit 99c3a27
Show file tree
Hide file tree
Showing 8 changed files with 151 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
],
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"cmake.sourceDirectory": "${workspaceFolder}/cpp",
"typescript.tsdk": "node_modules\\typescript\\lib"
"typescript.tsdk": "node_modules/typescript/lib"
}
263 changes: 130 additions & 133 deletions apps/figure/Pipfile.lock

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions apps/figure/api/script.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# spell-checker:words lpwl, arange, dtype, xyval, yzval, xzval

from matplotlib import pyplot as plt
from matplotlib.projections import PolarAxes
import numpy as np
import numpy.typing as npt
from matplotlib import pyplot as plt
from matplotlib.axes import Axes
from matplotlib.projections import PolarAxes
from numpy import abs, cos, pi, sin, sqrt


Expand Down Expand Up @@ -136,5 +137,9 @@ def zxval2(

y = yzval1(np.float64(0.5), np.float64(0), np.float64(0))

fig, ax = plt.subplots(subplot_kw={"projection": "polar"})
assert isinstance(ax, PolarAxes)
# fig, ax = plt.subplots(subplot_kw={"projection": "polar"})
# assert isinstance(ax, PolarAxes)
fig, ax = plt.subplots()
assert ax, Axes

fig.show()
10 changes: 5 additions & 5 deletions apps/figure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"micromark": "^4.0.0",
"micromark-extension-gfm": "^3.0.0",
"micromark-extension-math": "^3.1.0",
"solid-js": "^1.8.19",
"solid-js": "^1.8.20",
"vinxi": "^0.4.1",
"zod": "^3.23.8"
},
Expand All @@ -38,9 +38,9 @@
"@antcal/tsconfig": "workspace:*",
"autoprefixer": "^10.4.20",
"cssnano": "^7.0.4",
"postcss": "^8.4.40",
"tailwindcss": "^3.4.7",
"vite": "^5.3.5",
"vite-tsconfig-paths": "^4.3.2"
"postcss": "^8.4.41",
"tailwindcss": "^3.4.9",
"vite": "^5.4.0",
"vite-tsconfig-paths": "^5.0.1"
}
}
2 changes: 1 addition & 1 deletion apps/figure/src/components/posthog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PostHogSDK from "~/components/posthog/sdk?raw";
export default function PostHog() {
return <script>{PostHogSDK}</script>;
return <script defer>{PostHogSDK}</script>;
}
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"devDependencies": {
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^2.0.11",
"eslint-config-turbo": "^2.0.12",
"eslint-plugin-solid": "^0.14.1",
"globals": "^15.9.0",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"turbo": "^2.0.11",
"turbo": "^2.0.12",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.0"
"typescript-eslint": "^8.0.1"
},
"packageManager": "bun@1.1.12",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/tailwind-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
}
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"@tailwindcss/typography": "^0.5.14",
"@types/node": "^22.1.0",
"postcss-load-config": "^6.0.1",
"tailwindcss": "^3.4.7"
"tailwindcss": "^3.4.9"
}
}

0 comments on commit 99c3a27

Please sign in to comment.