Skip to content

Commit

Permalink
Sync pr (#2)
Browse files Browse the repository at this point in the history
* remove scrollbar-gutter in fullscreen (bluesky-social#5258)

* [Video] make hover state stick around if tapped (bluesky-social#5259)

* increase target area of scrubber (bluesky-social#5265)

* hls buffering tweaks (bluesky-social#5266)

* disable autoplay within messages and trim feelers (bluesky-social#5260)

* [Video] TEMP disable skip compression (bluesky-social#5271)

* [Video] Cap duration (bluesky-social#5270)

* fix min size for compression (bluesky-social#5272)

* add (bluesky-social#5273)

* [Video] Fix web autoplay (bluesky-social#5274)

* make container relative (bluesky-social#5280)

* remove double closing tag (bluesky-social#5257)

* Add autoCapitalize to password field (bluesky-social#5216)

* NUX API (bluesky-social#5278)

* Set up nux API

* Bump SDK

* Naming

* Imports

* WIP

* Progress on desktoip

* WIP, avi not working on web

* Disable avi

* Add badges, clean up spacing

* Copy

* Don't open for logged out users

* Hook up data

* Rename

* Refactor, integrate nux, snoozing

* Fix some nux types

* Dev helpers, string cleanup

* Protect against 3p PDSs and bad responses

* Protect against other exit methods, protect against multiple fetches

* Copy

* [Video] speculative .vtt file selection fix (bluesky-social#5296)

* speculative vtt fix

* add logging

* Tabular numbers to video timestamp (bluesky-social#5293)

* Fix notification scroll jump (bluesky-social#5297)

* Renaming the Follow button to "Follow back" when followed by user (bluesky-social#5281)

* Renaming the follow button to follow back when followed by user

* Fixing conditions and reusing existing translation

* Revert "Show some known OP replies in Following (bluesky-social#5049)" (bluesky-social#5301)

This reverts commit bff6aed.

* Add a hard-coded redirect for lulaoficial.bsky.social (bluesky-social#5303)

* Add gate

* Ensure dialog shows for all accounts without snoozing

* Add retry

* Handle overflow of bottom text

* Handle display name

* On android, change ten milly nux secondary action to save instead of share

* Add ja and pt-BR translations

* Suggested follows by actor (on profiles) updates (bluesky-social#5243)

* If fallback, return nothing

* Compress size a bit

* Hide on own profile

* Match load state

* Remove gcTime

* Filter out followed users

* Feedback

* Adjust image sizing (bluesky-social#5302)

* Enable video_upload gate (bluesky-social#5311)

* Fallback snoozing

* Let display name wrap

* Separate alt/crop, use new icon (bluesky-social#5321)

* Fix notification->post jump for real (bluesky-social#5314)

* Revert "Fix notification scroll jump (bluesky-social#5297)"

This reverts commit e0d9e75.

* Query notifications first

* Image/video border + tweaks (bluesky-social#5324)

* Image/video border (bluesky-social#5253)

* Update AutoSizedImage.tsx

* Update AutoSizedImage.tsx

* Update Gallery.tsx

* Update ExternalLinkEmbed.tsx

* Update MediaPreview.tsx

* Update UserAvatar.tsx

* Update ExternalLinkEmbed.tsx

* Update ExternalPlayerEmbed.tsx

* Update ExternalGifEmbed.tsx

* Update GifEmbed.tsx

* Update ExternalGifEmbed.tsx

* Update GifEmbed.tsx

* Update UserAvatar.tsx

* Update ExternalPlayerEmbed.tsx

* Update ExternalPlayerEmbed.tsx

* video

* Update QuoteEmbed.tsx

* Tweaks, abstract components

---------

Co-authored-by: Minseo Lee <[email protected]>

* Add events

* Disable pointer events on media border (bluesky-social#5327)

* [Video] Remove `expo-video`, use `bluesky-video` (bluesky-social#5282)

Co-authored-by: Samuel Newman <[email protected]>

* Fix lexicon validation in PWI Discover (bluesky-social#5329)

* [Video] Remember mute state while scrolling (bluesky-social#5331)

* [Video] Don't require email verification on self-host (bluesky-social#5332)

* Always display next button on login page (bluesky-social#5326)

Co-authored-by: Vinícius Souza <[email protected]>
Co-authored-by: Hailey <[email protected]>

* Apply Following settings to Lists (bluesky-social#5313)

* Apply Following settings to Lists

* Remove dead code

* [Video] Bump video (bluesky-social#5333)

* "N" keyboard shortcut to open a new post modal (bluesky-social#5197)

* feat: Add hook on web app to open composer with 'N' keyboard shortcut

* Extract, don't fire open composer if already open

* Ignore interactive elements

---------

Co-authored-by: João Gabriel <[email protected]>
Co-authored-by: Hailey <[email protected]>

* Don't open composer via hotkey if other dialog is already open (bluesky-social#5334)

* Don't open composer via hotkey if other dialog is already open

* Check for lightbox also

* Check for drawer

* [Video] Fix regression on audio session at launch (bluesky-social#5338)

* Release 1.91.1 prep (bluesky-social#5339)

* Fixes to tests

* intl extract

* bump (bluesky-social#5348)

* Add context to `Unmute` and `Mute` strings (bluesky-social#5340)

Co-authored-by: Hailey <[email protected]>

* [UITextView] Add background color support to iOS selectable text (bluesky-social#5335)

* Fix wrong empty state for liked by (bluesky-social#5343)

* Nux after onboarding (bluesky-social#5357)

* Don't show nux dialogs until post-onboarding

* Don't show if over 10M

* Disallow some font scaling

* Remove overflow hidden from external link outer el (bluesky-social#5356)

* Remove overflow hidden

* Borders when no thumb

* Fix overflow, add bg to no-thumb state

* Cleanup

* loosen checks on vtt file (bluesky-social#5359)

* [Video] Fix scrubber tap target (bluesky-social#5360)

* put padding on correct element

* clear timeout on down

* Update Portuguese localization (bluesky-social#5256)

Co-authored-by: Henrique Marques <[email protected]>
Co-authored-by: Arthur Tavares <[email protected]>

* Update French localization (bluesky-social#5227)

Co-authored-by: Stanislas Signoud <[email protected]>

* Update Chinese localization (bluesky-social#5291)

Co-authored-by: cirx <[email protected]>
Co-authored-by: Kuwa Lee <[email protected]>

* Update Korean localization (bluesky-social#5254)

* Update Japanese translation (bluesky-social#5217)

* Update catalan messages.po (bluesky-social#5223)

Co-authored-by: surfdude29 <[email protected]>
Co-authored-by: gsmt <[email protected]>

* Updates to Irish translation, back to 100% (bluesky-social#5345)

* [Video] Volume controls on web (bluesky-social#5363)

* split up VideoWebControls

* add basic slider

* logarithmic volume

* integrate mute state

* fix typo

* shared video volume

* rm log

* animate in/out

* disable for touch devices

* remove flicker on touch devices

* more detailed comment

* move into correct context provider

* add minHeight

* hack

* bettern umber

---------

Co-authored-by: Hailey <[email protected]>

* [Video] Fix safari showing spinner (bluesky-social#5364)

* Milly tweaks (bluesky-social#5365)

Co-authored-by: Hailey <[email protected]>

* [Video] Additional android fixes (bluesky-social#5373)

* rm unused code

* bump lib

* invert bool

* Bump 1.91.2 (bluesky-social#5387)

* Tweak `pt-BR` string (bluesky-social#5372)

* Pre-fill alt text with 10-million card post (bluesky-social#5389)

* Pre-fill alt text with 10-million card post (bluesky-social#5377)

* Clean up type

* Tweak alt copy

* Add pt translation, fix typo

---------

Co-authored-by: Calvin <[email protected]>

* Make like animation on web same speed as mobile (bluesky-social#5391)

* Fix border radius on avatars (bluesky-social#5392)

* Make it work with Xcode 16 (bluesky-social#5386)

* Temporary Sentry hack patch for iOS 18 (bluesky-social#5400)

* Revert unneeded changes to `expo-modules-core` patch (bluesky-social#5393)

* remove expo-sentry (bluesky-social#5405)

* Fix for undefined ref on hot reload on web (bluesky-social#5407)

* Update sentry sourcemaps upload (bluesky-social#5409)

* [Neue] Base (bluesky-social#5395)

* Add fontScale, gate it, fix some computes

* Add inter, integrate

* Clean up

* Apply to old Text component

* Use numeric weight

* Cleanup

* Clean up appearance settings

* Global tracking

* Fix regular italic variant

* Refactor settings and fontScale values

* Remove flags

* Get rid of lower weight font usage

* Remove gate from settings

* Refactor appearance settings for reuse

* Add neue type nux

* Update defaults

* Load fonts, add fallback families

* Load fonts via plugin in production

* Fixes

* Fix for web

* Nits

---------

Co-authored-by: Hailey <[email protected]>

* Fix font loading on web (bluesky-social#5412)

* Copy font files during build

* Fall back if error loading fonts

* Fix ext embeds in DMs (bluesky-social#5419)

* fix ext embeds in DMs

* undo acciental rounding change

* Revert provider stacking changes (bluesky-social#5423)

* Remove expo/vector-icons from EditImage modal (bluesky-social#5422)

* [Neue] Ligatures & composer (bluesky-social#5427)

* Disable contextual ligatures

* Ensure new type styles are applied to the composer

* Clean up using real devices

* Feedback

* [Neue] Copy and spacing tweaks (bluesky-social#5428)

* Copy and spacing tweaks

* Copy tweaks

* Adjust toggle components sizing (bluesky-social#5408)

(cherry picked from commit a9cbd23)

* [Neue] Parallel font loading on web (bluesky-social#5411)

* Parallel font loading

(cherry picked from commit 10e2b05)

* Handle failures

* Rely on font-face and preload tags for font loading (bluesky-social#5431)

* Cache fonts for a year

* Add eslint rule to fix imports without the `#/` path alias (bluesky-social#5175)

* Add border to menu on web (bluesky-social#5439)

* Language fixes (bluesky-social#5384)

* Add some comments

* Decouple language settings

* Normalize on read/write

* Refactor

* Support device locale on app startup

* Cleanup, port to web

* Clean up comments

* Comment

* Try not to mutate

* Protect util handling, update test

* Dedupe array values

* Add explicit non-handling of detached quotes in embed (bluesky-social#5156)

* [Neue] Buttons (bluesky-social#5406)

* Re-align button sizing

(cherry picked from commit bcec243)

* Use large, small, tiny

(cherry picked from commit 1dc333c)

* Tweaks

* patch expo modules again (bluesky-social#5441)

* Additional moderation (bluesky-social#5172)

* Set up additional mod authorities

* Filter out non-configurable mod authorities

* WIP

* Working

* Cleanup, add mod

* Cleanup

* Add more debug logs

* Tweak logs

* Filter out imperative labels from typeaheads

* Filter hideable content from notifications

* Add api

* Fall back in dev

* Remove space

* Use prod endpoint

* Add tiny notice

* Add notice to labeler card, show all labelers

* Increase rounding for all embeds (bluesky-social#5421)

* tweak image styles

* fix reply image preview and covert to atoms

* increase rounding on media inset border

* decrease gap on desktop

* fix inset styles

* increase rounding on embeds to `md`

* Couple edge cases

---------

Co-authored-by: Eric Bailey <[email protected]>

* Fixing hover card for labeler accounts (bluesky-social#5414)

* Fixing hover card for labeler account

* removing memo

* Fixing extra spacing in notification text (bluesky-social#5396)

* Validate TLD in signup (bluesky-social#5426)

* add lib

* add validation

* log

* add some common typos

* add tests

* reset hasWarned state on edit

* shorten path

* Move test file, adjust regex, add test

* Get real nit picky

---------

Co-authored-by: Eric Bailey <[email protected]>

* Fix spacing (bluesky-social#5444)

* [Neue] Font weights (bluesky-social#5442)

* Align all font weights

* Only load necessary fonts

* Also comment out from hook

---------

Co-authored-by: Samuel Newman <[email protected]>
Co-authored-by: Hailey <[email protected]>
Co-authored-by: Gargaj <[email protected]>
Co-authored-by: Eduardo Tachotte <[email protected]>
Co-authored-by: Eric Bailey <[email protected]>
Co-authored-by: Minseo Lee <[email protected]>
Co-authored-by: dan <[email protected]>
Co-authored-by: Wesley <[email protected]>
Co-authored-by: Paul Frazee <[email protected]>
Co-authored-by: Vinícius Souza <[email protected]>
Co-authored-by: João Gabriel <[email protected]>
Co-authored-by: surfdude29 <[email protected]>
Co-authored-by: Henrique Marques <[email protected]>
Co-authored-by: Arthur Tavares <[email protected]>
Co-authored-by: Stanislas Signoud <[email protected]>
Co-authored-by: Frudrax Cheng <[email protected]>
Co-authored-by: cirx <[email protected]>
Co-authored-by: Kuwa Lee <[email protected]>
Co-authored-by: Takayuki KUSANO <[email protected]>
Co-authored-by: Ivan Beà <[email protected]>
Co-authored-by: gsmt <[email protected]>
Co-authored-by: Kevin Scannell <[email protected]>
Co-authored-by: Calvin <[email protected]>
Co-authored-by: Roscoe Rubin-Rottenberg <[email protected]>
Co-authored-by: futur <[email protected]>
  • Loading branch information
1 parent f37d93a commit 59c01a6
Show file tree
Hide file tree
Showing 301 changed files with 13,563 additions and 9,528 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = {
],
'bsky-internal/use-exact-imports': 'error',
'bsky-internal/use-typed-gates': 'error',
'bsky-internal/use-prefixed-imports': 'warn',
'simple-import-sort/imports': [
'warn',
{
Expand Down
14 changes: 1 addition & 13 deletions __e2e__/flows/curate-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ appId: xyz.blueskyweb.app
- tapOn: "Delete List"
- tapOn:
id: "confirmBtn"
- assertVisible:
id: "listsEmpty"
- assertVisible: "This list is empty!"

- tapOn:
label: "Create a new curatelist"
Expand Down Expand Up @@ -161,17 +160,6 @@ appId: xyz.blueskyweb.app
- assertNotVisible:
id: "userAddRemoveListsModal"

- tapOn:
label: "Shows the curatelist on my profile"
id: "bottomBarProfileBtn"
- swipe:
from:
id: "profilePager-selector"
direction: LEFT
- tapOn:
id: "profilePager-selector-6"
- tapOn: "Good Ppl"

- tapOn:
label: "Adds and removes users on curatelists from the profile"
id: "bottomBarSearchBtn"
Expand Down
6 changes: 2 additions & 4 deletions __e2e__/flows/thread-screen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ appId: xyz.blueskyweb.app
id: "likeBtn"
childOf:
id: "postThreadItem-by-bob.test"
- assertVisible:
id: "likeCount-expanded"
- assertVisible: "1 like"
- tapOn:
id: "likeBtn"
childOf:
id: "postThreadItem-by-bob.test"
- assertNotVisible:
id: "likeCount-expanded"
- assertNotVisible: "1 like"

# Can like a reply post
- tapOn:
Expand Down
39 changes: 36 additions & 3 deletions app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = function (config) {
: undefined
const UPDATES_ENABLED = !!UPDATES_CHANNEL

const USE_SENTRY = Boolean(process.env.SENTRY_AUTH_TOKEN)
const SENTRY_DIST = `${PLATFORM}.${VERSION}.${IS_TESTFLIGHT ? 'tf' : ''}${
IS_DEV ? 'dev' : ''
}`
Expand Down Expand Up @@ -186,7 +187,15 @@ module.exports = function (config) {
},
plugins: [
'expo-localization',
Boolean(process.env.SENTRY_AUTH_TOKEN) && 'sentry-expo',
USE_SENTRY && [
'@sentry/react-native/expo',
{
organization: 'blueskyweb',
project: 'react-native',
release: VERSION,
dist: SENTRY_DIST,
},
],
[
'expo-build-properties',
{
Expand All @@ -211,7 +220,6 @@ module.exports = function (config) {
sounds: PLATFORM === 'ios' ? ['assets/dm.aiff'] : ['assets/dm.mp3'],
},
],
'expo-video',
'react-native-compressor',
'./plugins/starterPackAppClipExtension/withStarterPackAppClip.js',
'./plugins/withAndroidManifestPlugin.js',
Expand All @@ -222,6 +230,31 @@ module.exports = function (config) {
'./plugins/shareExtension/withShareExtensions.js',
'./plugins/notificationsExtension/withNotificationsExtension.js',
'./plugins/withAppDelegateReferrer.js',
[
'expo-font',
{
fonts: [
// './assets/fonts/inter/Inter-Thin.otf',
// './assets/fonts/inter/Inter-ThinItalic.otf',
// './assets/fonts/inter/Inter-ExtraLight.otf',
// './assets/fonts/inter/Inter-ExtraLightItalic.otf',
// './assets/fonts/inter/Inter-Light.otf',
// './assets/fonts/inter/Inter-LightItalic.otf',
'./assets/fonts/inter/Inter-Regular.otf',
'./assets/fonts/inter/Inter-Italic.otf',
'./assets/fonts/inter/Inter-Medium.otf',
'./assets/fonts/inter/Inter-MediumItalic.otf',
'./assets/fonts/inter/Inter-SemiBold.otf',
'./assets/fonts/inter/Inter-SemiBoldItalic.otf',
'./assets/fonts/inter/Inter-Bold.otf',
'./assets/fonts/inter/Inter-BoldItalic.otf',
'./assets/fonts/inter/Inter-ExtraBold.otf',
'./assets/fonts/inter/Inter-ExtraBoldItalic.otf',
'./assets/fonts/inter/Inter-Black.otf',
'./assets/fonts/inter/Inter-BlackItalic.otf',
],
},
],
].filter(Boolean),
extra: {
eas: {
Expand Down Expand Up @@ -264,7 +297,7 @@ module.exports = function (config) {
* @see https://docs.expo.dev/guides/using-sentry/#app-configuration
*/
{
file: 'sentry-expo/upload-sourcemaps',
file: './postHooks/uploadSentrySourcemapsPostHook',
config: {
organization: 'blueskyweb',
project: 'react-native',
Expand Down
Binary file added assets/fonts/inter/Inter-Black.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-BlackItalic.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Bold.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-BoldItalic.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ExtraBold.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ExtraBoldItalic.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ExtraLight.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ExtraLightItalic.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Italic.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Light.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-LightItalic.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Medium.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-MediumItalic.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Regular.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-SemiBold.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-SemiBoldItalic.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-Thin.otf
Binary file not shown.
Binary file added assets/fonts/inter/Inter-ThinItalic.otf
Binary file not shown.
1 change: 1 addition & 0 deletions assets/icons/aspectRatio11_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/aspectRatio34_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/aspectRatio43_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/download_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/flipHorizontal_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/flipVertical_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/textSize_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/titleCase_stroke2_corner0_rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion bskyembed/src/components/embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ export function Embed({
return <Info>The quoted post is blocked.</Info>
}

// Case 3.8: Detached quote post
if (AppBskyEmbedRecord.isViewDetached(record)) {
// Just don't show anything
return null
}

// Unknown embed type
return null
}
Expand Down Expand Up @@ -372,7 +378,7 @@ function VideoEmbed({content}: {content: AppBskyEmbedVideo.View}) {

return (
<div
className="w-full overflow-hidden rounded-lg aspect-square"
className="w-full overflow-hidden rounded-lg aspect-square relative"
style={{aspectRatio: `${aspectRatio} / 1`}}>
<img
src={content.thumbnail}
Expand Down
2 changes: 1 addition & 1 deletion bskyweb/cmd/bskyweb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func run(args []string) {
Name: "cors-allowed-origins",
Usage: "list of allowed origins for CORS requests",
Required: false,
Value: cli.NewStringSlice("https://bsky.app", "https://main.bsky.dev", "https://app.staging.bsky.dev"),
Value: cli.NewStringSlice("https://bsky.app", "https://main.bsky.dev", "https://app.staging.bsky.dev", "https://creaton.social"),
EnvVars: []string{"CORS_ALLOWED_ORIGINS"},
},
},
Expand Down
5 changes: 5 additions & 0 deletions bskyweb/cmd/bskyweb/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ func serve(cctx *cli.Context) error {
maxAge = 7 * (60 * 60 * 24) // 1 week
}

// fonts can be cached for a year
if strings.HasSuffix(path, ".otf") {
maxAge = 365 * (60 * 60 * 24) // 1 year
}

c.Response().Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%d", maxAge))
return next(c)
}
Expand Down
Binary file modified bskyweb/static/apple-touch-icon.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 modified bskyweb/static/favicon-16x16.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 modified bskyweb/static/favicon-32x32.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 modified bskyweb/static/favicon.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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified bskyweb/static/social-card-default-gradient.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 modified bskyweb/static/social-card-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
157 changes: 155 additions & 2 deletions bskyweb/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,117 @@

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

<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-Regular.1f5ed03b6dd9fd1f9982.otf">
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-Italic.95778eb0c75dc956257e.otf">
<!--
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-Medium.296aa2d65964269836b3.otf">
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-MediumItalic.0e57e17a6311368e2114.otf">
-->
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-SemiBold.2277990330981b8409bb.otf">
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-SemiBoldItalic.f62fea3df3a521d6c8a7.otf">
<!--
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-Bold.8d330503e1d034ad68de.otf">
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-BoldItalic.bb17e63f9baa0d861a20.otf">
-->
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-ExtraBold.ff2581a193bf6b7e0b06.otf">
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-ExtraBoldItalic.0e50b40728d24d40fdf4.otf">
<!--
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-Black.66e9a87f1c921e844ed4.otf">
<link rel="preload" as="font" type="font/otf" href="/static/media/Inter-BlackItalic.27b9f0ad06fd13a7b9da.otf">
-->

<style>
@font-face {
font-family: "Inter-Regular";
src: local("Inter-Regular"), url(/static/media/Inter-Regular.1f5ed03b6dd9fd1f9982.otf) format("font/otf");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Inter-Italic";
src: local("Inter-Italic"), url(/static/media/Inter-Italic.95778eb0c75dc956257e.otf) format("font/otf");
font-weight: 400;
font-style: italic;
font-display: swap;
}
/*
@font-face {
font-family: "Inter-Medium";
src: local("Inter-Medium"), url(/static/media/Inter-Medium.296aa2d65964269836b3.otf) format("font/otf");
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Inter-MediumItalic";
src: local("Inter-MediumItalic"), url(/static/media/Inter-MediumItalic.0e57e17a6311368e2114.otf) format("font/otf");
font-weight: 500;
font-style: italic;
font-display: swap;
}
*/
@font-face {
font-family: "Inter-SemiBold";
src: local("Inter-SemiBold"), url(/static/media/Inter-SemiBold.2277990330981b8409bb.otf) format("font/otf");
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Inter-SemiBoldItalic";
src: local("Inter-SemiBoldItalic"), url(/static/media/Inter-SemiBoldItalic.f62fea3df3a521d6c8a7.otf) format("font/otf");
font-weight: 600;
font-style: italic;
font-display: swap;
}
/*
@font-face {
font-family: "Inter-Bold";
src: local("Inter-Bold"), url(/static/media/Inter-Bold.8d330503e1d034ad68de.otf) format("font/otf");
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Inter-BoldItalic";
src: local("Inter-BoldItalic"), url(/static/media/Inter-BoldItalic.bb17e63f9baa0d861a20.otf) format("font/otf");
font-weight: 700;
font-style: italic;
font-display: swap;
}
*/
@font-face {
font-family: "Inter-ExtraBold";
src: local("Inter-ExtraBold"), url(/static/media/Inter-ExtraBold.ff2581a193bf6b7e0b06.otf) format("font/otf");
font-weight: 800;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Inter-ExtraBoldItalic";
src: local("Inter-ExtraBoldItalic"), url(/static/media/Inter-ExtraBoldItalic.0e50b40728d24d40fdf4.otf) format("font/otf");
font-weight: 800;
font-style: italic;
font-display: swap;
}
/*
@font-face {
font-family: "Inter-Black";
src: local("Inter-Black"), url(/static/media/Inter-Black.66e9a87f1c921e844ed4.otf) format("font/otf");
font-weight: 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Inter-BlackItalic";
src: local("Inter-BlackItalic"), url(/static/media/Inter-BlackItalic.27b9f0ad06fd13a7b9da.otf) format("font/otf");
font-weight: 900;
font-style: italic;
font-display: swap;
}
*/

/**
* Extend the react-native-web reset:
* https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/StyleSheet/initialRules.js
Expand Down Expand Up @@ -149,7 +259,6 @@

/* ProseMirror */
.ProseMirror {
font: 18px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Liberation Sans", Helvetica, Arial, sans-serif;
min-height: 140px;
}
.ProseMirror-dark {
Expand Down Expand Up @@ -258,7 +367,51 @@
.force-no-clicks * {
pointer-events: none !important;
}
</style>

input[type=range][orient=vertical] {
writing-mode: vertical-lr;
direction: rtl;
appearance: slider-vertical;
width: 16px;
vertical-align: bottom;
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
}

input[type="range"][orient=vertical]::-webkit-slider-runnable-track {
background: white;
height: 100%;
width: 4px;
border-radius: 4px;
}

input[type="range"][orient=vertical]::-moz-range-track {
background: white;
height: 100%;
width: 4px;
border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
border-radius: 50%;
background-color: white;
height: 16px;
width: 16px;
margin-left: -6px;
}

input[type="range"][orient=vertical]::-moz-range-thumb {
border: none;
border-radius: 50%;
background-color: white;
height: 16px;
width: 16px;
margin-left: -6px;
}
</style>
{% include "scripts.html" %}
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png">
Expand Down
1 change: 1 addition & 0 deletions eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ module.exports = {
'avoid-unwrapped-text': require('./avoid-unwrapped-text'),
'use-exact-imports': require('./use-exact-imports'),
'use-typed-gates': require('./use-typed-gates'),
'use-prefixed-imports': require('./use-prefixed-imports'),
},
}
8 changes: 4 additions & 4 deletions eslint/use-exact-imports.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/* eslint-disable bsky-internal/use-exact-imports */
const BANNED_IMPORTS = [
'@fortawesome/free-regular-svg-icons',
'@fortawesome/free-solid-svg-icons',
]

exports.create = function create(context) {
return {
Literal(node) {
if (typeof node.value !== 'string') {
ImportDeclaration(node) {
const source = node.source
if (typeof source.value !== 'string') {
return
}
if (BANNED_IMPORTS.includes(node.value)) {
if (BANNED_IMPORTS.includes(source.value)) {
context.report({
node,
message:
Expand Down
Loading

0 comments on commit 59c01a6

Please sign in to comment.