-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project cleanup: prepare for new structure #38
Comments
espen42
added a commit
that referenced
this issue
Aug 31, 2021
…ontentbase) for fetching content type and display name (and children of folders), and a second call for deeper and more specific data
espen42
added a commit
that referenced
this issue
Aug 31, 2021
espen42
added a commit
that referenced
this issue
Sep 1, 2021
espen42
added a commit
that referenced
this issue
Sep 2, 2021
espen42
added a commit
that referenced
this issue
Sep 9, 2021
espen42
added a commit
that referenced
this issue
Sep 9, 2021
espen42
added a commit
that referenced
this issue
Nov 19, 2021
commit 8bcba9f Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 26 10:53:42 2021 +0200 #86: remove baseUrl (since that's added later in the guide - it's only used for CS preview) commit 889e4b1 Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 19 19:09:03 2021 +0200 #29: update file structure to make a bit more sense: guillotine/ instead of shared/data/, and error components are .tsx, not .js commit 9cad670 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 18 23:20:47 2021 +0200 #83: simplify enonic-connection-config.js commit 1474cf6 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 13:42:00 2021 +0200 Not default-prohibiting rendering of media: data commit 7e417b3 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 12:32:25 2021 +0200 #83: comment commit 75be6a0 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 02:01:14 2021 +0200 #83: pre-config and export fetchContent through imports, instead of building it in contentPath.tsx. Comments and types improved. commit 91da709 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 01:10:53 2021 +0200 #83: remove left-behind commented-out selector args commit 8fea506 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 01:08:31 2021 +0200 #83: data and x, instead of dataAsJson and xAsJson? commit 4c36325 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 01:06:13 2021 +0200 #83: remove surrounding styling - header, footer, layout, styling, common props. Comments. commit 0e28caf Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 00:54:04 2021 +0200 #83: remove list, movie and person commit abb4a22 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 00:45:23 2021 +0200 #83: unify selectors: defining a content type's set of queries (with optional variable-getter, either as an object or an array), props-processors and page-components in one place. Single export/import. commit 9bd3079 Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 15:53:27 2021 +0200 To override/hardcode the next-display a content item, the filename (full path in next) and component name in next are CASE SENSITIVE and must match exactly the _name and (site-relative-ified) _path of the content item in XP. commit ed7c885 Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 15:46:26 2021 +0200 #83: move commonProps out of fetchContent, to a separate module usable by both content template components and other (hardcoded) ones commit f8123f0 Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 13:19:29 2021 +0200 #82: /_guillotine instead of /api. Comment update. commit 1c979fe Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 13:18:39 2021 +0200 Align with naming in app-hmdb: "from XP param" instead of "request is from XP attribute" commit 9cf5003 Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 13:15:16 2021 +0200 Add test page which does correspond to a MyPage content in XP but is hardcoded as MyPage.tsx in next commit 27540fb Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 12 11:49:42 2021 +0200 #75: typescript adjustment commit 347c1ac Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 12 11:45:42 2021 +0200 #75: capitalize component file names, fix some TS errors commit 57ef28d Merge: 5d2c91c 8d1d987 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 22:55:20 2021 +0200 Merge branch '#80/img-tag' into #75/new-proxy-approach * #80/img-tag: #80: Header with props that are now processable with the CS proxy, since the img src value is passed in with inline props from the SSR (instead of being locally processed in the Header component itself). #80: add the optional commonPropsProcessor. Separate between pageProps.content (previously .data) and pageProps.common. (#80) Re-add working examples (along with previous commit) Revert "#79: add examples of insertion in selectors" commit 8d1d987 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 22:51:34 2021 +0200 #80: Header with props that are now processable with the CS proxy, since the img src value is passed in with inline props from the SSR (instead of being locally processed in the Header component itself). commit 62ca780 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 22:49:40 2021 +0200 #80: add the optional commonPropsProcessor. Separate between pageProps.content (previously .data) and pageProps.common. commit 5bcfa68 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 20:58:49 2021 +0200 (#80) Re-add working examples (along with previous commit) This reverts commit 5885911. commit 6eb94c0 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 20:58:31 2021 +0200 Revert "#79: add examples of insertion in selectors" This reverts commit 5d2c91c. commit 5d2c91c Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:33:52 2021 +0200 #79: add examples of insertion in selectors commit 5885911 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:33:06 2021 +0200 #79: remove example components, queries, processors etc, reverting everything to a clean slate commit 9d2d293 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:15:52 2021 +0200 #79: readability - adding comments, moving code around for structure commit bd43dad Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:15:03 2021 +0200 #79: move getLocalPagePathFromXpPath from enonic-connection to propsProcessors commit 72939f7 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:11:35 2021 +0200 (#79) Remove comments, logs, unused code commit db32a5c Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:37:58 2021 +0200 #79: fix TS-problems that weren't reported in dev mode commit 2d4f1dd Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:37:28 2021 +0200 #79: remove unused imports commit 8602c09 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:36:20 2021 +0200 #79: adding type PropsProcessorSelector to fetchContent commit ee6f723 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:33:50 2021 +0200 #75: testing vhosted connection config commit c50ab9f Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:33:15 2021 +0200 #79: Structural refactor - propsProcessor functions and queries moved below /selectors commit 964d939 Author: Espen Norderud <espen42@gmail.com> Date: Wed Oct 6 15:27:20 2021 +0200 #75: adaptations to new proxy approach commit ab82a9a Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 5 15:58:48 2021 +0200 #34: Asset prefix commit bdaae2a Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 5 00:43:16 2021 +0200 #34: preprocess urls in props (here, just preprocessing ALL props) in order to allow CS preview proxy handling to work on inline props too. commit b976670 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:39:34 2021 +0200 (#68) add list, person and movie demo views This reverts commit a02636e. commit 5328180 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:36:00 2021 +0200 #68: cleanup excess logging commit a02636e Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:34:07 2021 +0200 #68: remove list, person and movie demo views commit 74a963b Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:33:09 2021 +0200 #68: cleanup naming of selectors and usages commit 317494b Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:25:58 2021 +0200 #68: Parameter-typing EnonicConnectionConfig commit d8f1c5a Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 17:00:34 2021 +0200 #68: absolute urls for content commit 09032c7 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 15:55:05 2021 +0200 #68: remove the random and click functions in the header commit 703147e Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 15:51:52 2021 +0200 #68: move /public from src to root commit 9017b00 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 29 21:36:20 2021 +0200 #34: test: next.js Image remains a problem. commit d5db685 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 29 21:35:49 2021 +0200 #34: Tests: next.js Links vs direct HTML links (works in tandem with baseUrl in all cases) commit 1c3734e Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 29 20:56:22 2021 +0200 #66: BaseUrl is set automatically to '/'. commit 43051a6 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 29 00:16:38 2021 +0200 #66: Re-introduce baseUrl meta prop hardcoded to null, since __NEXT_DATA__ is included, and during hydration in CS preview, the <base is replaced - unless the proxy in CS can pick up and replace the baseUrl prop from SSR. commit 2a6193b Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 28 15:35:33 2021 +0200 (#66) Use site-relative paths and image urls. While waiting for guillotine to be able to supply site-relative imageUrl and _path ("type: site", etc), src/shared/siteRelative/siteRelative is used to make guillotine data site-relative first. commit ababa57 Author: Espen Norderud <espen42@gmail.com> Date: Mon Sep 27 17:11:44 2021 +0200 #66: Hardcode site name and branch, fetch side/branch-specific content at root instead of below e.g. /_draft/<site>/. commit 47e94f6 Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 24 17:22:01 2021 +0200 #34: Works: add baseUrl as a pageProps.meta attribute so that the <base href... is also set correctly when hydrating the component. commit 9cda9c7 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 22 22:56:01 2021 +0200 #34: adapt list, movie and person queries and page components commit 8f22ca1 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 22 22:55:03 2021 +0200 #34: adapt rendering for relative-href <a> links and pure <img> tags commit 2cdc91a Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 21 18:22:01 2021 +0200 #34: Tidier enonic-connection-config. Adding sitename to config makes it baked in so it's not needed in _master and _draft. Typescript improvements. commit e1cee59 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 21 12:06:48 2021 +0200 #34: WiP commit 4304786 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 16 12:25:46 2021 +0200 #59: relative imageUrl. commit c082617 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 16 12:04:06 2021 +0200 #59: display images using Image tag with fetched dimensions commit 8ed1593 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 16 12:02:59 2021 +0200 (#59) Fetch and handle image dimensions commit cceba9a Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 18:14:20 2021 +0200 #56: WiP commit 28e0c1e Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 10:47:13 2021 +0200 #34: add page views and queries to selectors. Works like this. commit ef40a94 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 10:22:22 2021 +0200 (#34) components folder, not templates folder commit 0985b0c Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 10:19:08 2021 +0200 Revert "Remove shared/images/index.ts, which belongs to the custom rendering of movie and person" This reverts commit 2ef8e32. commit bca6568 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 10:18:49 2021 +0200 Revert "Remove List, Movie and Person (#38)" This reverts commit 4f9843a. commit 669ff4c Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 17:44:18 2021 +0200 #34: Fine adjustment to _Default.tsx commit 9211139 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 17:30:17 2021 +0200 #34: _Default renderer, now 20% prettier commit 2b042dd Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 16:59:15 2021 +0200 (#34): Remove uri-parameter-dependent asset prefix, let next.config.js handle it. Remove client rendered _draft, leave all rendering to SSR for now. Client uses useRouter, which appears to handle calls from XP proxy badly, specifically sets asPath wrong and causes error. commit 86d0731 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 12:45:50 2021 +0200 #34: misc typescript workarounds to build, need improvement later commit 2ef8e32 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 12:44:52 2021 +0200 Remove shared/images/index.ts, which belongs to the custom rendering of movie and person commit e3cf87a Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 12:44:03 2021 +0200 #34: assetPrefix commit d97d4a5 Author: Espen Norderud <espen42@gmail.com> Date: Mon Sep 13 16:45:59 2021 +0200 #34: CORS headers, open specifically to the XP server, read from enonic-connection-config.js commit 9ee7087 Merge: 4a5df1a a50e27c Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 10 11:36:37 2021 +0200 Merge branch 'master' into #22/stage2, resolve conflicts # Conflicts: # next-env.d.ts # next.config.js # src/pages/_app.tsx # src/pages/index.tsx # tsconfig.json commit 4a5df1a Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 10 11:09:30 2021 +0200 #22: tweak, move the "spinner" to the only component that uses it when fetching data, the ClientSideBasePage. commit 1323a62 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 14:30:01 2021 +0200 #29: Unbind from HMDB commit 7090b2b Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 14:14:28 2021 +0200 #25: no point in calling it idOrPath, when only a path input can extract the appName. Also 'path' easier to read. commit 7a767ac Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 14:05:26 2021 +0200 #50: add 'type' return from fetchContent, using the meta query so type attribute in data query is only needed for caching (#41). commit fb98aeb Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 13:41:06 2021 +0200 Remove TODO comments (moved to / noted in issues #52, #50, #51, #41 and #24) commit da4b632 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 13:24:49 2021 +0200 #31: media not rendered. Logging missing data (when not fetching). commit 1ded6b4 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 12:38:47 2021 +0200 #38: improve examples and comments commit f4e0532 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 12:38:08 2021 +0200 #38: remove Folder commit 4f9843a Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 12:24:58 2021 +0200 Remove List, Movie and Person (#38) commit 8a26fa1 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 12:24:36 2021 +0200 #49: fixed, refactoring complete. commit 3ddc88b Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 18:29:44 2021 +0200 #49: WiP, can't render BasePage from client? commit 5c63d8a Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 18:18:22 2021 +0200 Restructure for dependency insertion and separation between data fetching and rendering (#49). Foundation for later extraction of the data fetching to a separate (NPM?) render-agnostic module. commit 991968b Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 14:15:58 2021 +0200 #48: move next/ subfolder to root commit 5e068a7 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 13:45:14 2021 +0200 #48: remove next-hmdb, now that the API is generalized. Add connection config specific to HMDB. commit 5acc38c Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 13:40:47 2021 +0200 #48: add and improve error handling commit 370d72a Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 11:18:46 2021 +0200 #48: fix problem, which was faulty branch selection commit c3cfaf7 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 7 18:27:19 2021 +0200 #48: move backend logic to frontend - metadata and contentdata should use common guillotine API endpoint with queries stemming from frontend, instead of specialized endpoints. Doesn't quite work - metadata query and variables (copied from what the frontend sends) work in the graphql playground but not when posted from the frontend. Much strange. commit f753f4d Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 7 15:16:53 2021 +0200 #10: HMDB (ex-gatsby) pages re-made in new setup commit e73080b Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 7 13:41:38 2021 +0200 Refactor: move Folder type to queries/getFolder commit 6d8b232 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 7 13:21:14 2021 +0200 Refactor: cleaner, and commented out the CTY-adapted queries and templates commit cfa464f Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 21:36:22 2021 +0200 Add querySelectors and templateSelectors. commit f62dea1 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:22:53 2021 +0200 Add gatsby-ish views and queries, adjusted and working. Only missing inclusion in querySelector and templateSelector. This reverts commit ba80076. commit f6248b0 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:21:47 2021 +0200 #26: final cleanup commit 9dee3f0 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:21:00 2021 +0200 #38: Remove more old pages commit ba80076 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:08:27 2021 +0200 38: remove old pages commit 5f19855 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:07:22 2021 +0200 #26: capitalize template names commit 3db80f5 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 19:59:48 2021 +0200 #26: CTY-specific view, using base:folder as demonstration commit 07f0628 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 18:56:30 2021 +0200 #26: general front page commit eb8ec4a Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 18:55:17 2021 +0200 Log cleanup commit 9d18b48 Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 3 16:00:57 2021 +0200 Naming and example commit 7774dbb Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 3 15:57:17 2021 +0200 #26: much improved structure. Not rendering anything special yet commit 8b6b55d Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 3 12:49:51 2021 +0200 #26: Moving children to default data call instead of meta call commit 8dbba79 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 18:27:28 2021 +0200 Refactor: extract ClientSideFetchingBasePage commit a13a6a4 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 18:12:21 2021 +0200 update pages_old commit 65bdb93 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 18:11:28 2021 +0200 Refactor: extract BasePage commit b074895 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 18:01:06 2021 +0200 pages_old (deprecated, only use for examples, then delete) refactored commit adf7fbf Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 17:59:42 2021 +0200 Two-pass data fetch works: content is fetched (override query is not tested yet) commit 5d7a89b Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 16:28:14 2021 +0200 contentBase first draft complete: _draft and master separate routers. commit 652ee9a Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 16:00:20 2021 +0200 Dynamically-routed server-side rendering instead commit 57025b8 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 15:51:43 2021 +0200 Refactor. Dynamic client-side routing with fetch delay simulation. commit c4f1f60 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 14:12:12 2021 +0200 ContentBase call and handling works. commit 17f53ca Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 13:45:21 2021 +0200 Workbench: API called once on page load, distributes props commit dd210bc Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 13:35:49 2021 +0200 Simple handling of errors with components to view them commit 066f912 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 12:55:46 2021 +0200 #38: Refactor and solve CORS problem, specific for nextJS domain commit 6b968f5 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 20:54:30 2021 +0200 #38: Wip: why CORS? commit dc0832c Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 16:26:31 2021 +0200 #38: WiP, close to first contentBase fetch and rendering. Make fetch client-side to view it better. commit 5da22fe Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 14:27:25 2021 +0200 #38: improve comments commit 2ccd3b5 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 14:26:52 2021 +0200 #38: add maxChildren param for contentbase api, to limit searching for child content below folders commit 28802b1 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 14:05:43 2021 +0200 #38: remove nav-specific xp-side querying and fragments (leaving behind only default queries) commit 5ced867 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 13:39:57 2021 +0200 #38: DRY content and contentbase services and mapped controllers. commit e5920a1 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 31 16:13:48 2021 +0200 #38: a little project restructuring commit 4d8a025 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 31 16:13:00 2021 +0200 #38: changing XP-side services suitable for two calls: a first one (contentbase) for fetching content type and display name (and children of folders), and a second call for deeper and more specific data commit a0a9456 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 31 12:11:34 2021 +0200 #12 wip commit c5c358a Author: Espen Norderud <espen42@gmail.com> Date: Mon Aug 30 14:42:59 2021 +0200 WiP - not working commit 877c3ee Author: Espen Norderud <espen42@gmail.com> Date: Mon Aug 30 10:46:26 2021 +0200 WiP - sitecontentquery commit c7594b5 Author: Espen Norderud <espen42@gmail.com> Date: Fri Aug 27 18:48:47 2021 +0200 #12: approaching a general (CTY-agnostic) sitecontent query. Add service, graphql (playground), but it currently fails (_id of null) commit de5b744 Author: Espen Norderud <espen42@gmail.com> Date: Thu Aug 26 15:41:38 2021 +0200 #12: nextJS data-fetching minor steps commit a8adafd Author: Espen Norderud <espen42@gmail.com> Date: Thu Aug 26 15:40:40 2021 +0200 #12: beginnings for general data-fetching on the nextJS side commit 41be653 Author: Espen Norderud <espen42@gmail.com> Date: Thu Aug 26 15:38:05 2021 +0200 #12: add sitecontent service with general query fragments commit 4e255ff Author: Espen Norderud <espen42@gmail.com> Date: Wed Aug 25 11:15:29 2021 +0200 #12: groundwork - move away irrelevant files commit 52f86d0 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 20:00:41 2021 +0200 #10: removed obsolete timestamp complexity from the data fetching flow, keeping it under /rendering commit b282f52 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 19:12:55 2021 +0200 Renderings work too commit cacbf09 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 18:38:10 2021 +0200 #10: render lists, persons and movies headlessly with components from gatsby starter commit 74084ac Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 16:55:56 2021 +0200 #10: page title commit 9a68321 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 16:43:07 2021 +0200 #10: move enonic connection config to root commit a668ede Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 16:23:49 2021 +0200 10: layout commit 14cdb93 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 15:35:40 2021 +0200 10: x-data and cleanup commit 776407b Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 12:55:08 2021 +0200 #10: parameterized movies commit c085da6 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 10:36:57 2021 +0200 #10: Parameterized persons commit 8955a3d Author: Espen Norderud <espen42@gmail.com> Date: Mon Aug 23 15:32:46 2021 +0200 #10: extract queries and backend-connection config. Improve queries with beefier data commit 7cb97df Merge: b8ec853 3b3268f Author: Espen Norderud <espen42@gmail.com> Date: Thu Aug 12 11:57:47 2021 +0200 Merge pull request #8 from enonic/3/next-in-cs Send data from CS to Next and render accordingly commit 3b3268f Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 12 09:35:53 2021 +0200 Remove unused import, format comment to line length. (#3) commit 968174e Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 12 09:30:31 2021 +0200 Switch to using content path instead of ID to communicate. (#3) commit 8a77c6b Author: Thomas Heartman <the+github@enonic.com> Date: Wed Aug 11 15:50:08 2021 +0200 Make CS and Next talk together This commit makes CS/XP pass an id to Next, which then fetches more data about the content with said ID before return it. Whether this is how we'd want to do it or not: I don't really know, but as a proof of concept it works! 😄 (#3) commit 598ff2c Author: Thomas Heartman <the+github@enonic.com> Date: Wed Aug 11 15:49:02 2021 +0200 Refactor data fetching, add single get query. (#3) commit 3ab8f8a Author: Thomas Heartman <the+github@enonic.com> Date: Wed Aug 11 13:04:56 2021 +0200 Reword comment about FOUC issues. commit 5851fd0 Author: Thomas Heartman <the+github@enonic.com> Date: Wed Aug 11 12:35:22 2021 +0200 Add initial Next rendering in CS. (#3) commit e7c9dad Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 10 15:30:01 2021 +0200 Http client and frontend-proxy tweaks commit 1f82a0e Merge: 918a101 934a261 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 10 15:11:19 2021 +0200 Merge branch '5/imports' into 3/next-in-cs commit 918a101 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 10 15:10:48 2021 +0200 temp commit b8e3220 Author: Thomas Heartman <the+github@enonic.com> Date: Tue Aug 10 14:56:47 2021 +0200 Original idea for Next to CS interaction. commit b8ec853 Merge: 919d5c8 3e411d1 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 15:20:26 2021 +0200 Merge pull request #7 from enonic/2/nextjs-fetch-data Next.js data fetching commit 3e411d1 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 15:15:50 2021 +0200 Remove useMemo hook for getData function. (#7) commit 6e1bc90 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 14:23:21 2021 +0200 Stringify error message before displaying it. #7 commit b6b7193 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 14:22:16 2021 +0200 Change `kind` -> `status`; memoize `getData` function. (#7) commit 49f2599 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 14:15:58 2021 +0200 Simplify expressions: remove redundant variable duplication. (#7) commit a0378aa Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 14:15:37 2021 +0200 Delete commented-out code. (#2) commit e264001 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 11:21:35 2021 +0200 Add info about data fetching to the main landing page. (#2) commit f5191a7 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 11:11:36 2021 +0200 Add client-side rendered demo page. (#2) commit 5caad3d Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 10:23:03 2021 +0200 Refactor: place queries/requests in a separate file. This facilitates re-use with the client-side render page. (#2) commit 479c6c0 Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 14:35:19 2021 +0200 Add ssr and ssg as separate pages. (#fetch) commit a6e2b0a Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 11:20:20 2021 +0200 Add a /data page to test server side rendering via GraphQL. (#fetch) commit f015fae Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 11:20:06 2021 +0200 Install prettier (#2) commit 86f93a2 Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 11:18:43 2021 +0200 Remove graphql, graphql-request packages. Turns out the [docs](https://developer.enonic.com/docs/guillotine/stable/usage#accessing_graphql_with_javascript) demonstrate how to fetch data using fetch, so let's stick with that for now. (#2) commit 18a8a49 Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 10:30:47 2021 +0200 Add @types/next package as dev dependency. (#fetch) commit a024aa0 Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 10:30:37 2021 +0200 Add graphql-request. (#fetch) commit 919d5c8 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 3 21:23:33 2021 +0200 Destructuring commit 0bdc28e Author: Espen Norderud <espen42@gmail.com> Date: Mon Aug 2 13:12:15 2021 +0200 #5: tsx-ified templates: list, movie, person commit ec5b61a Author: Espen Norderud <espen42@gmail.com> Date: Sat Jul 31 17:21:24 2021 +0200 #5: Moved next sourcefiles to next/src. Next.tsx-ified blocks (from gatsby). GetMovies and GetPersons queries. commit 934a261 Author: Espen Norderud <espen42@gmail.com> Date: Wed Jul 28 23:55:59 2021 +0200 HMDB data and import script
espen42
added a commit
that referenced
this issue
Nov 22, 2021
Squashed commit of the following: commit 1f5d671 Author: Espen Norderud <espen42@gmail.com> Date: Mon Nov 22 23:46:29 2021 +0100 Remove redundant files. Add comment (#90) commit b251540 Author: Espen Norderud <espen42@gmail.com> Date: Mon Nov 22 23:26:19 2021 +0100 Typescript-ify recent changes, more aligned with simple-boilerplate code (#90) commit 0be8fac Author: Espen Norderud <espen42@gmail.com> Date: Fri Nov 19 13:34:46 2021 +0100 Wip (#90) commit 0ab1252 Author: Espen Norderud <espen42@gmail.com> Date: Thu Nov 18 17:47:32 2021 +0100 Squashed commit of the following: commit 8bcba9f Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 26 10:53:42 2021 +0200 #86: remove baseUrl (since that's added later in the guide - it's only used for CS preview) commit 889e4b1 Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 19 19:09:03 2021 +0200 #29: update file structure to make a bit more sense: guillotine/ instead of shared/data/, and error components are .tsx, not .js commit 9cad670 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 18 23:20:47 2021 +0200 #83: simplify enonic-connection-config.js commit 1474cf6 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 13:42:00 2021 +0200 Not default-prohibiting rendering of media: data commit 7e417b3 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 12:32:25 2021 +0200 #83: comment commit 75be6a0 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 02:01:14 2021 +0200 #83: pre-config and export fetchContent through imports, instead of building it in contentPath.tsx. Comments and types improved. commit 91da709 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 01:10:53 2021 +0200 #83: remove left-behind commented-out selector args commit 8fea506 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 01:08:31 2021 +0200 #83: data and x, instead of dataAsJson and xAsJson? commit 4c36325 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 01:06:13 2021 +0200 #83: remove surrounding styling - header, footer, layout, styling, common props. Comments. commit 0e28caf Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 00:54:04 2021 +0200 #83: remove list, movie and person commit abb4a22 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 15 00:45:23 2021 +0200 #83: unify selectors: defining a content type's set of queries (with optional variable-getter, either as an object or an array), props-processors and page-components in one place. Single export/import. commit 9bd3079 Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 15:53:27 2021 +0200 To override/hardcode the next-display a content item, the filename (full path in next) and component name in next are CASE SENSITIVE and must match exactly the _name and (site-relative-ified) _path of the content item in XP. commit ed7c885 Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 15:46:26 2021 +0200 #83: move commonProps out of fetchContent, to a separate module usable by both content template components and other (hardcoded) ones commit f8123f0 Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 13:19:29 2021 +0200 #82: /_guillotine instead of /api. Comment update. commit 1c979fe Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 13:18:39 2021 +0200 Align with naming in app-hmdb: "from XP param" instead of "request is from XP attribute" commit 9cf5003 Author: Espen Norderud <espen42@gmail.com> Date: Thu Oct 14 13:15:16 2021 +0200 Add test page which does correspond to a MyPage content in XP but is hardcoded as MyPage.tsx in next commit 27540fb Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 12 11:49:42 2021 +0200 #75: typescript adjustment commit 347c1ac Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 12 11:45:42 2021 +0200 #75: capitalize component file names, fix some TS errors commit 57ef28d Merge: 5d2c91c 8d1d987 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 22:55:20 2021 +0200 Merge branch '#80/img-tag' into #75/new-proxy-approach * #80/img-tag: #80: Header with props that are now processable with the CS proxy, since the img src value is passed in with inline props from the SSR (instead of being locally processed in the Header component itself). #80: add the optional commonPropsProcessor. Separate between pageProps.content (previously .data) and pageProps.common. (#80) Re-add working examples (along with previous commit) Revert "#79: add examples of insertion in selectors" commit 8d1d987 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 22:51:34 2021 +0200 #80: Header with props that are now processable with the CS proxy, since the img src value is passed in with inline props from the SSR (instead of being locally processed in the Header component itself). commit 62ca780 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 22:49:40 2021 +0200 #80: add the optional commonPropsProcessor. Separate between pageProps.content (previously .data) and pageProps.common. commit 5bcfa68 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 20:58:49 2021 +0200 (#80) Re-add working examples (along with previous commit) This reverts commit 5885911. commit 6eb94c0 Author: Espen Norderud <espen42@gmail.com> Date: Mon Oct 11 20:58:31 2021 +0200 Revert "#79: add examples of insertion in selectors" This reverts commit 5d2c91c. commit 5d2c91c Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:33:52 2021 +0200 #79: add examples of insertion in selectors commit 5885911 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:33:06 2021 +0200 #79: remove example components, queries, processors etc, reverting everything to a clean slate commit 9d2d293 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:15:52 2021 +0200 #79: readability - adding comments, moving code around for structure commit bd43dad Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:15:03 2021 +0200 #79: move getLocalPagePathFromXpPath from enonic-connection to propsProcessors commit 72939f7 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 18:11:35 2021 +0200 (#79) Remove comments, logs, unused code commit db32a5c Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:37:58 2021 +0200 #79: fix TS-problems that weren't reported in dev mode commit 2d4f1dd Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:37:28 2021 +0200 #79: remove unused imports commit 8602c09 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:36:20 2021 +0200 #79: adding type PropsProcessorSelector to fetchContent commit ee6f723 Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:33:50 2021 +0200 #75: testing vhosted connection config commit c50ab9f Author: Espen Norderud <espen42@gmail.com> Date: Fri Oct 8 17:33:15 2021 +0200 #79: Structural refactor - propsProcessor functions and queries moved below /selectors commit 964d939 Author: Espen Norderud <espen42@gmail.com> Date: Wed Oct 6 15:27:20 2021 +0200 #75: adaptations to new proxy approach commit ab82a9a Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 5 15:58:48 2021 +0200 #34: Asset prefix commit bdaae2a Author: Espen Norderud <espen42@gmail.com> Date: Tue Oct 5 00:43:16 2021 +0200 #34: preprocess urls in props (here, just preprocessing ALL props) in order to allow CS preview proxy handling to work on inline props too. commit b976670 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:39:34 2021 +0200 (#68) add list, person and movie demo views This reverts commit a02636e. commit 5328180 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:36:00 2021 +0200 #68: cleanup excess logging commit a02636e Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:34:07 2021 +0200 #68: remove list, person and movie demo views commit 74a963b Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:33:09 2021 +0200 #68: cleanup naming of selectors and usages commit 317494b Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 18:25:58 2021 +0200 #68: Parameter-typing EnonicConnectionConfig commit d8f1c5a Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 17:00:34 2021 +0200 #68: absolute urls for content commit 09032c7 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 15:55:05 2021 +0200 #68: remove the random and click functions in the header commit 703147e Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 30 15:51:52 2021 +0200 #68: move /public from src to root commit 9017b00 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 29 21:36:20 2021 +0200 #34: test: next.js Image remains a problem. commit d5db685 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 29 21:35:49 2021 +0200 #34: Tests: next.js Links vs direct HTML links (works in tandem with baseUrl in all cases) commit 1c3734e Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 29 20:56:22 2021 +0200 #66: BaseUrl is set automatically to '/'. commit 43051a6 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 29 00:16:38 2021 +0200 #66: Re-introduce baseUrl meta prop hardcoded to null, since __NEXT_DATA__ is included, and during hydration in CS preview, the <base is replaced - unless the proxy in CS can pick up and replace the baseUrl prop from SSR. commit 2a6193b Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 28 15:35:33 2021 +0200 (#66) Use site-relative paths and image urls. While waiting for guillotine to be able to supply site-relative imageUrl and _path ("type: site", etc), src/shared/siteRelative/siteRelative is used to make guillotine data site-relative first. commit ababa57 Author: Espen Norderud <espen42@gmail.com> Date: Mon Sep 27 17:11:44 2021 +0200 #66: Hardcode site name and branch, fetch side/branch-specific content at root instead of below e.g. /_draft/<site>/. commit 47e94f6 Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 24 17:22:01 2021 +0200 #34: Works: add baseUrl as a pageProps.meta attribute so that the <base href... is also set correctly when hydrating the component. commit 9cda9c7 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 22 22:56:01 2021 +0200 #34: adapt list, movie and person queries and page components commit 8f22ca1 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 22 22:55:03 2021 +0200 #34: adapt rendering for relative-href <a> links and pure <img> tags commit 2cdc91a Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 21 18:22:01 2021 +0200 #34: Tidier enonic-connection-config. Adding sitename to config makes it baked in so it's not needed in _master and _draft. Typescript improvements. commit e1cee59 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 21 12:06:48 2021 +0200 #34: WiP commit 4304786 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 16 12:25:46 2021 +0200 #59: relative imageUrl. commit c082617 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 16 12:04:06 2021 +0200 #59: display images using Image tag with fetched dimensions commit 8ed1593 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 16 12:02:59 2021 +0200 (#59) Fetch and handle image dimensions commit cceba9a Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 18:14:20 2021 +0200 #56: WiP commit 28e0c1e Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 10:47:13 2021 +0200 #34: add page views and queries to selectors. Works like this. commit ef40a94 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 10:22:22 2021 +0200 (#34) components folder, not templates folder commit 0985b0c Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 10:19:08 2021 +0200 Revert "Remove shared/images/index.ts, which belongs to the custom rendering of movie and person" This reverts commit 2ef8e32. commit bca6568 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 15 10:18:49 2021 +0200 Revert "Remove List, Movie and Person (#38)" This reverts commit 4f9843a. commit 669ff4c Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 17:44:18 2021 +0200 #34: Fine adjustment to _Default.tsx commit 9211139 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 17:30:17 2021 +0200 #34: _Default renderer, now 20% prettier commit 2b042dd Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 16:59:15 2021 +0200 (#34): Remove uri-parameter-dependent asset prefix, let next.config.js handle it. Remove client rendered _draft, leave all rendering to SSR for now. Client uses useRouter, which appears to handle calls from XP proxy badly, specifically sets asPath wrong and causes error. commit 86d0731 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 12:45:50 2021 +0200 #34: misc typescript workarounds to build, need improvement later commit 2ef8e32 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 12:44:52 2021 +0200 Remove shared/images/index.ts, which belongs to the custom rendering of movie and person commit e3cf87a Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 14 12:44:03 2021 +0200 #34: assetPrefix commit d97d4a5 Author: Espen Norderud <espen42@gmail.com> Date: Mon Sep 13 16:45:59 2021 +0200 #34: CORS headers, open specifically to the XP server, read from enonic-connection-config.js commit 9ee7087 Merge: 4a5df1a a50e27c Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 10 11:36:37 2021 +0200 Merge branch 'master' into #22/stage2, resolve conflicts # Conflicts: # next-env.d.ts # next.config.js # src/pages/_app.tsx # src/pages/index.tsx # tsconfig.json commit 4a5df1a Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 10 11:09:30 2021 +0200 #22: tweak, move the "spinner" to the only component that uses it when fetching data, the ClientSideBasePage. commit 1323a62 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 14:30:01 2021 +0200 #29: Unbind from HMDB commit 7090b2b Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 14:14:28 2021 +0200 #25: no point in calling it idOrPath, when only a path input can extract the appName. Also 'path' easier to read. commit 7a767ac Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 14:05:26 2021 +0200 #50: add 'type' return from fetchContent, using the meta query so type attribute in data query is only needed for caching (#41). commit fb98aeb Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 13:41:06 2021 +0200 Remove TODO comments (moved to / noted in issues #52, #50, #51, #41 and #24) commit da4b632 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 13:24:49 2021 +0200 #31: media not rendered. Logging missing data (when not fetching). commit 1ded6b4 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 12:38:47 2021 +0200 #38: improve examples and comments commit f4e0532 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 12:38:08 2021 +0200 #38: remove Folder commit 4f9843a Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 12:24:58 2021 +0200 Remove List, Movie and Person (#38) commit 8a26fa1 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 9 12:24:36 2021 +0200 #49: fixed, refactoring complete. commit 3ddc88b Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 18:29:44 2021 +0200 #49: WiP, can't render BasePage from client? commit 5c63d8a Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 18:18:22 2021 +0200 Restructure for dependency insertion and separation between data fetching and rendering (#49). Foundation for later extraction of the data fetching to a separate (NPM?) render-agnostic module. commit 991968b Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 14:15:58 2021 +0200 #48: move next/ subfolder to root commit 5e068a7 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 13:45:14 2021 +0200 #48: remove next-hmdb, now that the API is generalized. Add connection config specific to HMDB. commit 5acc38c Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 13:40:47 2021 +0200 #48: add and improve error handling commit 370d72a Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 8 11:18:46 2021 +0200 #48: fix problem, which was faulty branch selection commit c3cfaf7 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 7 18:27:19 2021 +0200 #48: move backend logic to frontend - metadata and contentdata should use common guillotine API endpoint with queries stemming from frontend, instead of specialized endpoints. Doesn't quite work - metadata query and variables (copied from what the frontend sends) work in the graphql playground but not when posted from the frontend. Much strange. commit f753f4d Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 7 15:16:53 2021 +0200 #10: HMDB (ex-gatsby) pages re-made in new setup commit e73080b Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 7 13:41:38 2021 +0200 Refactor: move Folder type to queries/getFolder commit 6d8b232 Author: Espen Norderud <espen42@gmail.com> Date: Tue Sep 7 13:21:14 2021 +0200 Refactor: cleaner, and commented out the CTY-adapted queries and templates commit cfa464f Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 21:36:22 2021 +0200 Add querySelectors and templateSelectors. commit f62dea1 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:22:53 2021 +0200 Add gatsby-ish views and queries, adjusted and working. Only missing inclusion in querySelector and templateSelector. This reverts commit ba80076. commit f6248b0 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:21:47 2021 +0200 #26: final cleanup commit 9dee3f0 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:21:00 2021 +0200 #38: Remove more old pages commit ba80076 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:08:27 2021 +0200 38: remove old pages commit 5f19855 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 20:07:22 2021 +0200 #26: capitalize template names commit 3db80f5 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 19:59:48 2021 +0200 #26: CTY-specific view, using base:folder as demonstration commit 07f0628 Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 18:56:30 2021 +0200 #26: general front page commit eb8ec4a Author: Espen Norderud <espen42@gmail.com> Date: Sun Sep 5 18:55:17 2021 +0200 Log cleanup commit 9d18b48 Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 3 16:00:57 2021 +0200 Naming and example commit 7774dbb Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 3 15:57:17 2021 +0200 #26: much improved structure. Not rendering anything special yet commit 8b6b55d Author: Espen Norderud <espen42@gmail.com> Date: Fri Sep 3 12:49:51 2021 +0200 #26: Moving children to default data call instead of meta call commit 8dbba79 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 18:27:28 2021 +0200 Refactor: extract ClientSideFetchingBasePage commit a13a6a4 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 18:12:21 2021 +0200 update pages_old commit 65bdb93 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 18:11:28 2021 +0200 Refactor: extract BasePage commit b074895 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 18:01:06 2021 +0200 pages_old (deprecated, only use for examples, then delete) refactored commit adf7fbf Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 17:59:42 2021 +0200 Two-pass data fetch works: content is fetched (override query is not tested yet) commit 5d7a89b Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 16:28:14 2021 +0200 contentBase first draft complete: _draft and master separate routers. commit 652ee9a Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 16:00:20 2021 +0200 Dynamically-routed server-side rendering instead commit 57025b8 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 15:51:43 2021 +0200 Refactor. Dynamic client-side routing with fetch delay simulation. commit c4f1f60 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 14:12:12 2021 +0200 ContentBase call and handling works. commit 17f53ca Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 13:45:21 2021 +0200 Workbench: API called once on page load, distributes props commit dd210bc Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 13:35:49 2021 +0200 Simple handling of errors with components to view them commit 066f912 Author: Espen Norderud <espen42@gmail.com> Date: Thu Sep 2 12:55:46 2021 +0200 #38: Refactor and solve CORS problem, specific for nextJS domain commit 6b968f5 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 20:54:30 2021 +0200 #38: Wip: why CORS? commit dc0832c Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 16:26:31 2021 +0200 #38: WiP, close to first contentBase fetch and rendering. Make fetch client-side to view it better. commit 5da22fe Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 14:27:25 2021 +0200 #38: improve comments commit 2ccd3b5 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 14:26:52 2021 +0200 #38: add maxChildren param for contentbase api, to limit searching for child content below folders commit 28802b1 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 14:05:43 2021 +0200 #38: remove nav-specific xp-side querying and fragments (leaving behind only default queries) commit 5ced867 Author: Espen Norderud <espen42@gmail.com> Date: Wed Sep 1 13:39:57 2021 +0200 #38: DRY content and contentbase services and mapped controllers. commit e5920a1 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 31 16:13:48 2021 +0200 #38: a little project restructuring commit 4d8a025 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 31 16:13:00 2021 +0200 #38: changing XP-side services suitable for two calls: a first one (contentbase) for fetching content type and display name (and children of folders), and a second call for deeper and more specific data commit a0a9456 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 31 12:11:34 2021 +0200 #12 wip commit c5c358a Author: Espen Norderud <espen42@gmail.com> Date: Mon Aug 30 14:42:59 2021 +0200 WiP - not working commit 877c3ee Author: Espen Norderud <espen42@gmail.com> Date: Mon Aug 30 10:46:26 2021 +0200 WiP - sitecontentquery commit c7594b5 Author: Espen Norderud <espen42@gmail.com> Date: Fri Aug 27 18:48:47 2021 +0200 #12: approaching a general (CTY-agnostic) sitecontent query. Add service, graphql (playground), but it currently fails (_id of null) commit de5b744 Author: Espen Norderud <espen42@gmail.com> Date: Thu Aug 26 15:41:38 2021 +0200 #12: nextJS data-fetching minor steps commit a8adafd Author: Espen Norderud <espen42@gmail.com> Date: Thu Aug 26 15:40:40 2021 +0200 #12: beginnings for general data-fetching on the nextJS side commit 41be653 Author: Espen Norderud <espen42@gmail.com> Date: Thu Aug 26 15:38:05 2021 +0200 #12: add sitecontent service with general query fragments commit 4e255ff Author: Espen Norderud <espen42@gmail.com> Date: Wed Aug 25 11:15:29 2021 +0200 #12: groundwork - move away irrelevant files commit 52f86d0 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 20:00:41 2021 +0200 #10: removed obsolete timestamp complexity from the data fetching flow, keeping it under /rendering commit b282f52 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 19:12:55 2021 +0200 Renderings work too commit cacbf09 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 18:38:10 2021 +0200 #10: render lists, persons and movies headlessly with components from gatsby starter commit 74084ac Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 16:55:56 2021 +0200 #10: page title commit 9a68321 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 16:43:07 2021 +0200 #10: move enonic connection config to root commit a668ede Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 16:23:49 2021 +0200 10: layout commit 14cdb93 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 15:35:40 2021 +0200 10: x-data and cleanup commit 776407b Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 12:55:08 2021 +0200 #10: parameterized movies commit c085da6 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 24 10:36:57 2021 +0200 #10: Parameterized persons commit 8955a3d Author: Espen Norderud <espen42@gmail.com> Date: Mon Aug 23 15:32:46 2021 +0200 #10: extract queries and backend-connection config. Improve queries with beefier data commit 7cb97df Merge: b8ec853 3b3268f Author: Espen Norderud <espen42@gmail.com> Date: Thu Aug 12 11:57:47 2021 +0200 Merge pull request #8 from enonic/3/next-in-cs Send data from CS to Next and render accordingly commit 3b3268f Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 12 09:35:53 2021 +0200 Remove unused import, format comment to line length. (#3) commit 968174e Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 12 09:30:31 2021 +0200 Switch to using content path instead of ID to communicate. (#3) commit 8a77c6b Author: Thomas Heartman <the+github@enonic.com> Date: Wed Aug 11 15:50:08 2021 +0200 Make CS and Next talk together This commit makes CS/XP pass an id to Next, which then fetches more data about the content with said ID before return it. Whether this is how we'd want to do it or not: I don't really know, but as a proof of concept it works! 😄 (#3) commit 598ff2c Author: Thomas Heartman <the+github@enonic.com> Date: Wed Aug 11 15:49:02 2021 +0200 Refactor data fetching, add single get query. (#3) commit 3ab8f8a Author: Thomas Heartman <the+github@enonic.com> Date: Wed Aug 11 13:04:56 2021 +0200 Reword comment about FOUC issues. commit 5851fd0 Author: Thomas Heartman <the+github@enonic.com> Date: Wed Aug 11 12:35:22 2021 +0200 Add initial Next rendering in CS. (#3) commit e7c9dad Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 10 15:30:01 2021 +0200 Http client and frontend-proxy tweaks commit 1f82a0e Merge: 918a101 934a261 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 10 15:11:19 2021 +0200 Merge branch '5/imports' into 3/next-in-cs commit 918a101 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 10 15:10:48 2021 +0200 temp commit b8e3220 Author: Thomas Heartman <the+github@enonic.com> Date: Tue Aug 10 14:56:47 2021 +0200 Original idea for Next to CS interaction. commit b8ec853 Merge: 919d5c8 3e411d1 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 15:20:26 2021 +0200 Merge pull request #7 from enonic/2/nextjs-fetch-data Next.js data fetching commit 3e411d1 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 15:15:50 2021 +0200 Remove useMemo hook for getData function. (#7) commit 6e1bc90 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 14:23:21 2021 +0200 Stringify error message before displaying it. #7 commit b6b7193 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 14:22:16 2021 +0200 Change `kind` -> `status`; memoize `getData` function. (#7) commit 49f2599 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 14:15:58 2021 +0200 Simplify expressions: remove redundant variable duplication. (#7) commit a0378aa Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 14:15:37 2021 +0200 Delete commented-out code. (#2) commit e264001 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 11:21:35 2021 +0200 Add info about data fetching to the main landing page. (#2) commit f5191a7 Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 11:11:36 2021 +0200 Add client-side rendered demo page. (#2) commit 5caad3d Author: Thomas Heartman <the+github@enonic.com> Date: Fri Aug 6 10:23:03 2021 +0200 Refactor: place queries/requests in a separate file. This facilitates re-use with the client-side render page. (#2) commit 479c6c0 Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 14:35:19 2021 +0200 Add ssr and ssg as separate pages. (#fetch) commit a6e2b0a Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 11:20:20 2021 +0200 Add a /data page to test server side rendering via GraphQL. (#fetch) commit f015fae Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 11:20:06 2021 +0200 Install prettier (#2) commit 86f93a2 Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 11:18:43 2021 +0200 Remove graphql, graphql-request packages. Turns out the [docs](https://developer.enonic.com/docs/guillotine/stable/usage#accessing_graphql_with_javascript) demonstrate how to fetch data using fetch, so let's stick with that for now. (#2) commit 18a8a49 Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 10:30:47 2021 +0200 Add @types/next package as dev dependency. (#fetch) commit a024aa0 Author: Thomas Heartman <the+github@enonic.com> Date: Thu Aug 5 10:30:37 2021 +0200 Add graphql-request. (#fetch) commit 919d5c8 Author: Espen Norderud <espen42@gmail.com> Date: Tue Aug 3 21:23:33 2021 +0200 Destructuring commit 0bdc28e Author: Espen Norderud <espen42@gmail.com> Date: Mon Aug 2 13:12:15 2021 +0200 #5: tsx-ified templates: list, movie, person commit ec5b61a Author: Espen Norderud <espen42@gmail.com> Date: Sat Jul 31 17:21:24 2021 +0200 #5: Moved next sourcefiles to next/src. Next.tsx-ified blocks (from gatsby). GetMovies and GetPersons queries. commit 934a261 Author: Espen Norderud <espen42@gmail.com> Date: Wed Jul 28 23:55:59 2021 +0200 HMDB data and import script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: