Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Apr 22, 2024
1 parent cdc5b93 commit 101135b
Show file tree
Hide file tree
Showing 13 changed files with 448 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lighthouse-on-vercel-preview-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with:
# find project id here: https://vercel.com/studio-freight/satus/settings
vercel_team_id: 'studio-freight'
# find project id here: https://vercel.com/darkroom-engineering/satus/settings
vercel_team_id: 'darkroom-engineering'
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }}
- uses: actions/[email protected]
- name: Audit preview URL with Lighthouse
Expand Down
2 changes: 1 addition & 1 deletion HOW-TO.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Navigate to /debug/orchestra page to see the debug panel.

### Use Lenis

[See documentation](https://github.com/studio-freight/lenis/tree/main/packages/react-lenis)
[See documentation](https://github.com/darkroomengineering/lenis/blob/main/packages/react/README.md)

### Add WebGL

Expand Down
2 changes: 1 addition & 1 deletion app/(pages)/(components)/wrapper/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cn from 'clsx'
import { Lenis } from 'libs/react-lenis'
import { Lenis } from 'libs/lenis'
import { Canvas } from 'libs/webgl/components/canvas'
import { Footer } from '../footer'
import { Navigation } from '../navigation'
Expand Down
2 changes: 1 addition & 1 deletion components/gsap/scroll-trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import gsap from 'gsap'
import { ScrollTrigger } from 'gsap/all'
import { useLenis } from 'libs/react-lenis'
import { useLenis } from 'libs/lenis'
import { useEffect, useLayoutEffect } from 'react'

export function ScrollTriggerConfig() {
Expand Down
2 changes: 1 addition & 1 deletion components/link/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { useLenis } from 'libs/react-lenis'
import { useLenis } from 'libs/lenis'
import NextLink from 'next/link'
import { usePathname } from 'next/navigation'
import { forwardRef } from 'react'
Expand Down
2 changes: 1 addition & 1 deletion components/scrollbar/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { useRect } from '@darkroom.engineering/hamo'
import { useLenis } from '@studio-freight/react-lenis'
import { useLenis } from 'libs/lenis'
import { mapRange } from 'libs/maths'
import { useEffect, useRef } from 'react'
import s from './scrollbar.module.scss'
Expand Down
2 changes: 1 addition & 1 deletion docs/gsap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Satūs uses GSAP for animations

## Usage

To setup GSAP in your project, you can import it like with the `<GSAP>` component, it will merge automatically merge GSAP ticker with [Tempus](https://www.npmjs.com/package/@studio-freight/tempus). If `scrollTrigger` is passed as a prop, it will also setup ScrollTrigger so it's synced with [Lenis](https://www.npmjs.com/package/@studio-freight/lenis).
To setup GSAP in your project, you can import it like with the `<GSAP>` component, it will merge automatically merge GSAP ticker with [Tempus](https://www.npmjs.com/package/@darkroom.engineering/tempus). If `scrollTrigger` is passed as a prop, it will also setup ScrollTrigger so it's synced with [Lenis](https://www.npmjs.com/package/@darkroom.engineering/lenis).

```jsx
<GSAP scrollTrigger />
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion libs/webgl/components/image/webgl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useLenis } from '@studio-freight/react-lenis'
import { useLenis } from 'libs/lenis'
import { useTexture } from 'libs/webgl/hooks/use-texture'
import { useWebGLRect } from 'libs/webgl/hooks/use-webgl-rect'
import { useRef, useState } from 'react'
Expand Down
2 changes: 1 addition & 1 deletion libs/webgl/hooks/use-webgl-rect.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useThree } from '@react-three/fiber'
import { useLenis } from '@studio-freight/react-lenis'
import { useTransform } from 'hooks/use-transform'
import { useLenis } from 'libs/lenis'
import { useCallback, useRef } from 'react'
import { Euler, Vector3 } from 'three'

Expand Down
338 changes: 336 additions & 2 deletions public/sw.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/swe-worker-ab00d3c7d2d59769.js

This file was deleted.

102 changes: 102 additions & 0 deletions public/swe-worker-development.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
/******/ (function() { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({

/***/ "./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@serwist/next/dist/sw-entry-worker.js":
/*!**********************************************************************************************************************************************************!*\
!*** ./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@serwist/next/dist/sw-entry-worker.js ***!
\**********************************************************************************************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\nself.onmessage = async (ev)=>{\n switch(ev.data.type){\n case \"__START_URL_CACHE__\":\n {\n const url = ev.data.url;\n const response = await fetch(url);\n if (!response.redirected) {\n const startUrlCache = await caches.open(\"start-url\");\n return startUrlCache.put(url, response);\n }\n return Promise.resolve();\n }\n case \"__FRONTEND_NAV_CACHE__\":\n {\n const url = ev.data.url;\n const pagesCache = await caches.open(\"pages\");\n const isPageCached = !!await pagesCache.match(url, {\n ignoreSearch: true\n });\n if (isPageCached) {\n return;\n }\n const page = await fetch(url);\n if (!page.ok) {\n return;\n }\n pagesCache.put(url, page.clone());\n return Promise.resolve();\n }\n default:\n return Promise.resolve();\n }\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,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0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qgc3RhcnRVcmxDYWNoZSA9IGF3YWl0IGNhY2hlcy5vcGVuKFwic3RhcnQtdXJsXCIpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gc3RhcnRVcmxDYWNoZS5wdXQodXJsLCByZXNwb25zZSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgY2FzZSBcIl9fRlJPTlRFTkRfTkFWX0NBQ0hFX19cIjpcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjb25zdCB1cmwgPSBldi5kYXRhLnVybDtcbiAgICAgICAgICAgICAgICBjb25zdCBwYWdlc0NhY2hlID0gYXdhaXQgY2FjaGVzLm9wZW4oXCJwYWdlc1wiKTtcbiAgICAgICAgICAgICAgICBjb25zdCBpc1BhZ2VDYWNoZWQgPSAhIWF3YWl0IHBhZ2VzQ2FjaGUubWF0Y2godXJsLCB7XG4gICAgICAgICAgICAgICAgICAgIGlnbm9yZVNlYXJjaDogdHJ1ZVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIGlmIChpc1BhZ2VDYWNoZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb25zdCBwYWdlID0gYXdhaXQgZmV0Y2godXJsKTtcbiAgICAgICAgICAgICAgICBpZiAoIXBhZ2Uub2spIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBwYWdlc0NhY2hlLnB1dCh1cmwsIHBhZ2UuY2xvbmUoKSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZSgpO1xuICAgIH1cbn07XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@serwist/next/dist/sw-entry-worker.js\n"));

/***/ })

/******/ });
/************************************************************************/
/******/ // The require scope
/******/ var __webpack_require__ = {};
/******/
/************************************************************************/
/******/ /* webpack/runtime/make namespace object */
/******/ !function() {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/trusted types policy */
/******/ !function() {
/******/ var policy;
/******/ __webpack_require__.tt = function() {
/******/ // Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet.
/******/ if (policy === undefined) {
/******/ policy = {
/******/ createScript: function(script) { return script; }
/******/ };
/******/ if (typeof trustedTypes !== "undefined" && trustedTypes.createPolicy) {
/******/ policy = trustedTypes.createPolicy("nextjs#bundler", policy);
/******/ }
/******/ }
/******/ return policy;
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/trusted types script */
/******/ !function() {
/******/ __webpack_require__.ts = function(script) { return __webpack_require__.tt().createScript(script); };
/******/ }();
/******/
/******/ /* webpack/runtime/react refresh */
/******/ !function() {
/******/ if (__webpack_require__.i) {
/******/ __webpack_require__.i.push(function(options) {
/******/ var originalFactory = options.factory;
/******/ options.factory = function(moduleObject, moduleExports, webpackRequire) {
/******/ var hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;
/******/ var cleanup = hasRefresh ? self.$RefreshInterceptModuleExecution$(moduleObject.id) : function() {};
/******/ try {
/******/ originalFactory.call(this, moduleObject, moduleExports, webpackRequire);
/******/ } finally {
/******/ cleanup();
/******/ }
/******/ }
/******/ })
/******/ }
/******/ }();
/******/
/******/ /* webpack/runtime/compat */
/******/
/******/
/******/ // noop fns to prevent runtime errors during initialization
/******/ if (typeof self !== "undefined") {
/******/ self.$RefreshReg$ = function () {};
/******/ self.$RefreshSig$ = function () {
/******/ return function (type) {
/******/ return type;
/******/ };
/******/ };
/******/ }
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval-source-map devtool is used.
/******/ var __webpack_exports__ = {};
/******/ __webpack_modules__["./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@serwist/next/dist/sw-entry-worker.js"](0, __webpack_exports__, __webpack_require__);
/******/
/******/ })()
;

1 comment on commit 101135b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 81
🟢 Accessibility: 94
🟢 Best practices: 96
🟢 SEO: 92
🟠 PWA: 88

Lighthouse ran on https://satus-6noizpeci-darkroom-engineering.vercel.app/"

Please sign in to comment.