@chrryai/chrry 1.3.14 → 1.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.module.scss +23 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +27 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/App.module.scss
CHANGED
|
@@ -34,6 +34,29 @@
|
|
|
34
34
|
padding: 0 toRem.toRem(10);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.focus {
|
|
38
|
+
position: relative;
|
|
39
|
+
margin-left: toRem.toRem(10);
|
|
40
|
+
|
|
41
|
+
.focusTime {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: toRem.toRem(-7.5);
|
|
44
|
+
right: toRem.toRem(-40);
|
|
45
|
+
padding: toRem.toRem(2) toRem.toRem(6);
|
|
46
|
+
background-color: var(--accent-1);
|
|
47
|
+
color: #fff;
|
|
48
|
+
border-radius: toRem.toRem(10);
|
|
49
|
+
font-size: toRem.toRem(10);
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
font-family: "SF Mono", "Monaco", "Courier New", monospace;
|
|
52
|
+
letter-spacing: toRem.toRem(0.5);
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
box-shadow: 0 toRem.toRem(2) toRem.toRem(4) rgba(0, 0, 0, 0.1);
|
|
55
|
+
z-index: 1;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
37
60
|
.apps {
|
|
38
61
|
display: grid;
|
|
39
62
|
gap: 10px;
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2074,6 +2074,25 @@ var init_App_styles = __esm({
|
|
|
2074
2074
|
width: "100%",
|
|
2075
2075
|
padding: "0 10px"
|
|
2076
2076
|
},
|
|
2077
|
+
focus: {
|
|
2078
|
+
position: "relative",
|
|
2079
|
+
marginLeft: 10
|
|
2080
|
+
},
|
|
2081
|
+
focusTime: {
|
|
2082
|
+
position: "absolute",
|
|
2083
|
+
top: -7,
|
|
2084
|
+
right: -40,
|
|
2085
|
+
padding: "2px 6px",
|
|
2086
|
+
backgroundColor: "var(--accent-1)",
|
|
2087
|
+
color: "#fff",
|
|
2088
|
+
borderRadius: 10,
|
|
2089
|
+
fontSize: 10,
|
|
2090
|
+
fontWeight: 600,
|
|
2091
|
+
fontFamily: '"SF Mono", "Monaco", "Courier New", monospace',
|
|
2092
|
+
whiteSpace: "nowrap",
|
|
2093
|
+
boxShadow: 2,
|
|
2094
|
+
zIndex: 1
|
|
2095
|
+
},
|
|
2077
2096
|
apps: {
|
|
2078
2097
|
display: "grid",
|
|
2079
2098
|
gap: 10,
|
|
@@ -21506,7 +21525,7 @@ function DataProvider({
|
|
|
21506
21525
|
const [instructions, setInstructions] = (0, import_react14.useState)([]);
|
|
21507
21526
|
const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
|
|
21508
21527
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
|
|
21509
|
-
const VERSION3 = "1.3.
|
|
21528
|
+
const VERSION3 = "1.3.16";
|
|
21510
21529
|
const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
|
|
21511
21530
|
const {
|
|
21512
21531
|
API_URL: API_URL2,
|
|
@@ -22603,7 +22622,7 @@ var init_utils = __esm({
|
|
|
22603
22622
|
window.history.replaceState({}, "", newUrl);
|
|
22604
22623
|
};
|
|
22605
22624
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
|
|
22606
|
-
VERSION = "1.3.
|
|
22625
|
+
VERSION = "1.3.16";
|
|
22607
22626
|
getSlugFromPathname = (path) => {
|
|
22608
22627
|
const siteConfig = getSiteConfig();
|
|
22609
22628
|
return getAppAndStoreSlugs(path, {
|
|
@@ -31763,6 +31782,7 @@ function App({
|
|
|
31763
31782
|
onSave
|
|
31764
31783
|
}) {
|
|
31765
31784
|
const { t: t6 } = useAppContext();
|
|
31785
|
+
const { time } = useTimerContext();
|
|
31766
31786
|
const {
|
|
31767
31787
|
slug,
|
|
31768
31788
|
app,
|
|
@@ -32639,13 +32659,14 @@ function App({
|
|
|
32639
32659
|
Anchor,
|
|
32640
32660
|
{
|
|
32641
32661
|
href: "/focus",
|
|
32642
|
-
className: (0, import_clsx12.default)("link", import_App_module.default.
|
|
32662
|
+
className: (0, import_clsx12.default)("link", import_App_module.default.focus)
|
|
32643
32663
|
},
|
|
32664
|
+
time > 0 && /* @__PURE__ */ import_react51.default.createElement("span", { className: import_App_module.default.focusTime }, Math.floor(time / 60), ":", String(time % 60).padStart(2, "0")),
|
|
32644
32665
|
/* @__PURE__ */ import_react51.default.createElement(
|
|
32645
32666
|
ImageComponent,
|
|
32646
32667
|
{
|
|
32647
|
-
className: (0, import_clsx12.default)("link", import_App_module.default.
|
|
32648
|
-
containerClass: (0, import_clsx12.default)("link", import_App_module.default.
|
|
32668
|
+
className: (0, import_clsx12.default)("link", import_App_module.default.focus),
|
|
32669
|
+
containerClass: (0, import_clsx12.default)("link", import_App_module.default.focus),
|
|
32649
32670
|
logo: "focus",
|
|
32650
32671
|
width: 22,
|
|
32651
32672
|
height: 22
|
|
@@ -32731,6 +32752,7 @@ var init_App = __esm({
|
|
|
32731
32752
|
init_StylesContext();
|
|
32732
32753
|
init_providers();
|
|
32733
32754
|
init_AppContext();
|
|
32755
|
+
init_TimerContext();
|
|
32734
32756
|
}
|
|
32735
32757
|
});
|
|
32736
32758
|
|