Skip to content

Commit

Permalink
Merge branch 'bluesky-social:main' into change_desktop_taborder
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardNesbitt authored Dec 11, 2024
2 parents 8ff2327 + 48c5341 commit 647a9a0
Show file tree
Hide file tree
Showing 29 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ module.exports = function (config) {
'expo-font',
{
fonts: [
'./assets/fonts/inter/InterVariable.ttf',
'./assets/fonts/inter/InterVariable-Italic.ttf',
'./assets/fonts/inter/InterVariable.woff2',
'./assets/fonts/inter/InterVariable-Italic.woff2',
// Android only
'./assets/fonts/inter/Inter-Regular.otf',
'./assets/fonts/inter/Inter-Italic.otf',
Expand Down
Binary file added assets/fonts/inter/Inter-Black.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-BlackItalic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-BoldItalic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ExtraBold.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ExtraBoldItalic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ExtraLight.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ExtraLightItalic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Italic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Light.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-LightItalic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Medium.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-MediumItalic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-SemiBold.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-SemiBoldItalic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Thin.woff2
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ThinItalic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/InterVariable-Italic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/InterVariable.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 3 additions & 4 deletions bskyweb/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

<!-- Hello Humans! API docs at https://atproto.com -->

<link rel="preload" as="font" type="font/ttf" href="{{ staticCDNHost }}/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf">
<link rel="preload" as="font" type="font/ttf" href="{{ staticCDNHost }}/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf">
<link rel="preload" as="font" type="font/ttf" href="{{ staticCDNHost }}/static/media/InterVariable.c504db5c06caaf7cdfba.woff2">

<style>
/**
Expand All @@ -26,14 +25,14 @@
*/
@font-face {
font-family: 'InterVariable';
src: url("{{ staticCDNHost }}/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf") format('truetype');
src: url("{{ staticCDNHost }}/static/media/InterVariable.c504db5c06caaf7cdfba.woff2") format('woff2');
font-weight: 300 1000;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'InterVariableItalic';
src: url("{{ staticCDNHost }}/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf") format('truetype');
src: url("{{ staticCDNHost }}/static/media/InterVariable-Italic.01dcbad1bac635f9c9cd.woff2") format('woff2');
font-weight: 300 1000;
font-style: italic;
font-display: swap;
Expand Down
2 changes: 2 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ if (process.env.BSKY_PROFILE) {
cfg.cacheVersion += ':PROFILE'
}

cfg.resolver.assetExts = [...cfg.resolver.assetExts, 'woff2']

cfg.resolver.resolveRequest = (context, moduleName, platform) => {
// HACK: manually resolve a few packages that use `exports` in `package.json`.
// A proper solution is to enable `unstable_enablePackageExports` but this needs careful testing.
Expand Down
4 changes: 2 additions & 2 deletions src/alf/util/unusedUseFonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {useFonts} from 'expo-font'
*/
export function DO_NOT_USE() {
return useFonts({
InterVariable: require('../../../assets/fonts/inter/InterVariable.ttf'),
'InterVariable-Italic': require('../../../assets/fonts/inter/InterVariable-Italic.ttf'),
InterVariable: require('../../../assets/fonts/inter/InterVariable.woff2'),
'InterVariable-Italic': require('../../../assets/fonts/inter/InterVariable-Italic.woff2'),
})
}
2 changes: 1 addition & 1 deletion src/screens/Login/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const LoginForm = ({
autoCapitalize="none"
autoFocus
autoCorrect={false}
autoComplete="off"
autoComplete="one-time-code"
returnKeyType="done"
textContentType="username"
blurOnSubmit={false} // prevents flickering due to onSubmitEditing going to next field
Expand Down
8 changes: 7 additions & 1 deletion src/state/shell/composer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
'exclamation-circle',
)
} else {
setState(opts)
setState(prevOpts => {
if (prevOpts) {
// Never replace an already open composer.
return prevOpts
}
return opts
})
}
})

Expand Down
7 changes: 3 additions & 4 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
<link rel="preconnect" href="https://bsky.network">
<title>%WEB_TITLE%</title>

<link rel="preload" as="font" type="font/ttf" href="/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf">
<link rel="preload" as="font" type="font/ttf" href="/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf">
<link rel="preload" as="font" type="font/woff2" href="/static/media/InterVariable.c504db5c06caaf7cdfba.woff2" crossorigin>

<style>
/**
Expand All @@ -31,14 +30,14 @@
*/
@font-face {
font-family: 'InterVariable';
src: url(/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf) format('truetype');
src: url(/static/media/InterVariable.c504db5c06caaf7cdfba.woff2) format('woff2');
font-weight: 300 1000;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'InterVariableItalic';
src: url(/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf) format('truetype');
src: url(/static/media/InterVariable-Italic.01dcbad1bac635f9c9cd.woff2) format('woff2');
font-weight: 300 1000;
font-style: italic;
font-display: swap;
Expand Down

0 comments on commit 647a9a0

Please sign in to comment.