mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-05-20 15:36:51 +01:00
Compare commits
130 commits
4ace792156
...
03c1044f66
Author | SHA1 | Date | |
---|---|---|---|
03c1044f66 | |||
1c6b0aa0d7 | |||
3e1b9ff53d | |||
51457302f8 | |||
b6cf53c221 | |||
65d51b077f | |||
ecd308ce39 | |||
8fc5e10be9 | |||
c7c764a4f0 | |||
e73ae563e6 | |||
d34cce6d18 | |||
aed84226a1 | |||
6827a3811e | |||
83f9498b79 | |||
77818d3ac8 | |||
35a31e1613 | |||
247ed4a7e1 | |||
98e6a6e42e | |||
fe91c13703 | |||
e791ea8015 | |||
dbef125ee3 | |||
32c53b8c6e | |||
bd112f19b1 | |||
adf0b351c1 | |||
8aa05422b1 | |||
1e21f519f3 | |||
19da64a787 | |||
efca016d81 | |||
1d9d22a214 | |||
e4dd76cb11 | |||
0f537667d8 | |||
3f575142f1 | |||
11407d0f3c | |||
84b6368253 | |||
a75b214999 | |||
33c3b63b6e | |||
74991c326d | |||
f558a8cd32 | |||
87f1d17ce3 | |||
0cf7d683ee | |||
cb80057f21 | |||
bf6ee572fb | |||
7b049385f7 | |||
6feb2e7b41 | |||
4ea8e2c145 | |||
cd68aee186 | |||
5ba2af0970 | |||
9b1800dc56 | |||
2e97f19133 | |||
3f23d42966 | |||
e9c5025d31 | |||
eb013645e7 | |||
d5a3b48f0f | |||
b8d92bceb2 | |||
def1e8d099 | |||
8e2099daa7 | |||
ba81352844 | |||
650b71e9cc | |||
a6e369b1a8 | |||
f479feba65 | |||
38680aa6e7 | |||
d1d606fa10 | |||
375da8d173 | |||
2c31e8e04c | |||
534c4c97cd | |||
482a64cfac | |||
2dc1343f54 | |||
5e52fa87e0 | |||
6b03ae1fee | |||
c763d8b954 | |||
0a5d7267d5 | |||
5ee926481a | |||
0cd9a2db6e | |||
69f9b750c2 | |||
f5955ef258 | |||
27a999f733 | |||
54271101c1 | |||
d0cbb0812d | |||
ad45bf9d19 | |||
982f7b3ec4 | |||
4e50f227d8 | |||
546e77d3e1 | |||
e29f14bbcf | |||
05e87e084a | |||
01f10d3daa | |||
fc615e0c0d | |||
25e9771754 | |||
5e916559b3 | |||
883fe39b6c | |||
9933d83846 | |||
7d806301f2 | |||
faf9cbf23d | |||
a0f79e7eea | |||
0b1974e94b | |||
b4a4615b9a | |||
dda14587c0 | |||
ed9289d8c6 | |||
6274f2f24f | |||
b4e8ba820c | |||
29896dfe0e | |||
69c3f1a082 | |||
451dc57a69 | |||
4fbee9168d | |||
6ecc015199 | |||
a7a3d5605b | |||
ad4ed66cd6 | |||
4277992773 | |||
6bcf6b143c | |||
9e9f7a6ea1 | |||
f0014cb26a | |||
b0e118fcab | |||
f51201a787 | |||
5a035089ab | |||
206f00af40 | |||
13de3d9263 | |||
eb41ddf2de | |||
940e8f5376 | |||
77ba42dba9 | |||
95e204c439 | |||
82770e8035 | |||
818c8e61cd | |||
3b8592e946 | |||
c0c7d65034 | |||
5631126e8d | |||
bd2ed53f32 | |||
694fa22942 | |||
15c3979815 | |||
ab5f53273f | |||
19c2f9b048 | |||
a45250ac96 |
3011
package-lock.json
generated
3011
package-lock.json
generated
File diff suppressed because it is too large
Load diff
26
package.json
26
package.json
|
@ -19,7 +19,7 @@
|
|||
"@szhsin/react-menu": "~4.1.0",
|
||||
"@uidotdev/usehooks": "~2.4.1",
|
||||
"compare-versions": "~6.1.0",
|
||||
"dayjs": "~1.11.10",
|
||||
"dayjs": "~1.11.11",
|
||||
"dayjs-twitter": "~0.5.0",
|
||||
"fast-blurhash": "~1.1.2",
|
||||
"fast-equals": "~5.0.1",
|
||||
|
@ -28,18 +28,18 @@
|
|||
"idb-keyval": "~6.2.1",
|
||||
"just-debounce-it": "~3.2.0",
|
||||
"lz-string": "~1.5.0",
|
||||
"masto": "~6.7.2",
|
||||
"masto": "~6.7.7",
|
||||
"moize": "~6.1.6",
|
||||
"p-retry": "~6.2.0",
|
||||
"p-throttle": "~6.1.0",
|
||||
"preact": "~10.20.2",
|
||||
"preact": "~10.21.0",
|
||||
"punycode": "~2.3.1",
|
||||
"react-hotkeys-hook": "~4.5.0",
|
||||
"react-intersection-observer": "~9.8.2",
|
||||
"react-intersection-observer": "~9.10.2",
|
||||
"react-quick-pinch-zoom": "~5.1.0",
|
||||
"react-router-dom": "6.6.2",
|
||||
"string-length": "6.0.0",
|
||||
"swiped-events": "~1.1.9",
|
||||
"swiped-events": "~1.2.0",
|
||||
"toastify-js": "~1.12.0",
|
||||
"uid": "~2.0.2",
|
||||
"use-debounce": "~10.0.0",
|
||||
|
@ -51,18 +51,18 @@
|
|||
"@preact/preset-vite": "~2.8.2",
|
||||
"@trivago/prettier-plugin-sort-imports": "~4.3.0",
|
||||
"postcss": "~8.4.38",
|
||||
"postcss-dark-theme-class": "~1.2.3",
|
||||
"postcss-preset-env": "~9.5.8",
|
||||
"postcss-dark-theme-class": "~1.3.0",
|
||||
"postcss-preset-env": "~9.5.11",
|
||||
"twitter-text": "~3.1.0",
|
||||
"vite": "~5.2.10",
|
||||
"vite": "~5.2.11",
|
||||
"vite-plugin-generate-file": "~0.1.1",
|
||||
"vite-plugin-html-config": "~1.0.11",
|
||||
"vite-plugin-pwa": "~0.19.8",
|
||||
"vite-plugin-pwa": "~0.20.0",
|
||||
"vite-plugin-remove-console": "~2.2.0",
|
||||
"workbox-cacheable-response": "~7.0.0",
|
||||
"workbox-expiration": "~7.0.0",
|
||||
"workbox-routing": "~7.0.0",
|
||||
"workbox-strategies": "~7.0.0"
|
||||
"workbox-cacheable-response": "~7.1.0",
|
||||
"workbox-expiration": "~7.1.0",
|
||||
"workbox-routing": "~7.1.0",
|
||||
"workbox-strategies": "~7.1.0"
|
||||
},
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
|
|
|
@ -569,8 +569,15 @@
|
|||
font-weight: bold;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
|
||||
&.horizontal {
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
.status-filtered-badge.badge-meta {
|
||||
.status-filtered-badge:not(.horizontal).badge-meta {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
|
@ -584,10 +591,10 @@
|
|||
border-color: var(--text-color);
|
||||
background: var(--bg-color);
|
||||
}
|
||||
.status-filtered-badge.badge-meta > span:first-child {
|
||||
.status-filtered-badge:not(.horizontal).badge-meta > span:first-child {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.status-filtered-badge.badge-meta > span + span {
|
||||
.status-filtered-badge:not(.horizontal).badge-meta > span + span {
|
||||
display: block;
|
||||
font-size: 9px;
|
||||
font-weight: normal;
|
||||
|
@ -601,6 +608,10 @@
|
|||
left: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.status-filtered-badge.horizontal.badge-meta > span + span {
|
||||
font-weight: normal;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.status.large > .container > .content-container {
|
||||
margin-left: calc(-50px - 16px);
|
||||
|
|
|
@ -646,7 +646,11 @@ const TimelineItem = memo(
|
|||
>
|
||||
<Link class="status-link timeline-item" to={url}>
|
||||
{showCompact ? (
|
||||
<TimelineStatusCompact status={item} instance={instance} />
|
||||
<TimelineStatusCompact
|
||||
status={item}
|
||||
instance={instance}
|
||||
filterContext={filterContext}
|
||||
/>
|
||||
) : useItemID ? (
|
||||
<Status
|
||||
statusID={statusID}
|
||||
|
@ -820,11 +824,12 @@ function StatusCarousel({ title, class: className, children }) {
|
|||
);
|
||||
}
|
||||
|
||||
function TimelineStatusCompact({ status, instance }) {
|
||||
function TimelineStatusCompact({ status, instance, filterContext }) {
|
||||
const snapStates = useSnapshot(states);
|
||||
const { id, visibility, language } = status;
|
||||
const statusPeekText = statusPeek(status);
|
||||
const sKey = statusKey(id, instance);
|
||||
const filterInfo = isFiltered(status.filtered, filterContext);
|
||||
return (
|
||||
<article
|
||||
class={`status compact-thread ${
|
||||
|
@ -850,13 +855,24 @@ function TimelineStatusCompact({ status, instance }) {
|
|||
lang={language}
|
||||
dir="auto"
|
||||
>
|
||||
{statusPeekText}
|
||||
{status.sensitive && status.spoilerText && (
|
||||
{!!filterInfo ? (
|
||||
<b
|
||||
class="status-filtered-badge badge-meta horizontal"
|
||||
title={filterInfo?.titlesStr || ''}
|
||||
>
|
||||
<span>Filtered</span>: <span>{filterInfo?.titlesStr || ''}</span>
|
||||
</b>
|
||||
) : (
|
||||
<>
|
||||
{' '}
|
||||
<span class="spoiler-badge">
|
||||
<Icon icon="eye-close" size="s" />
|
||||
</span>
|
||||
{statusPeekText}
|
||||
{status.sensitive && status.spoilerText && (
|
||||
<>
|
||||
{' '}
|
||||
<span class="spoiler-badge">
|
||||
<Icon icon="eye-close" size="s" />
|
||||
</span>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue