@fecommunity/reactpress-template-hello-world 1.0.0-beta.1 → 1.0.0-beta.4

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.
Files changed (47) hide show
  1. package/.next/cache/.tsbuildinfo +1 -0
  2. package/.next/cache/webpack/client-development/0.pack +0 -0
  3. package/.next/cache/webpack/client-development/index.pack +0 -0
  4. package/.next/cache/webpack/client-development-fallback/0.pack +0 -0
  5. package/.next/cache/webpack/client-development-fallback/index.pack +0 -0
  6. package/.next/cache/webpack/client-production/0.pack +0 -0
  7. package/.next/cache/webpack/client-production/index.pack +0 -0
  8. package/.next/cache/webpack/server-development/0.pack +0 -0
  9. package/.next/cache/webpack/server-development/1.pack +0 -0
  10. package/.next/cache/webpack/server-development/index.pack +0 -0
  11. package/.next/cache/webpack/server-development/index.pack.old +0 -0
  12. package/.next/cache/webpack/server-production/0.pack +0 -0
  13. package/.next/cache/webpack/server-production/1.pack +0 -0
  14. package/.next/cache/webpack/server-production/2.pack +0 -0
  15. package/.next/cache/webpack/server-production/index.pack +0 -0
  16. package/.next/cache/webpack/server-production/index.pack.old +0 -0
  17. package/.next/package.json +1 -0
  18. package/.next/routes-manifest.json +1 -0
  19. package/.next/server/chunks/402.js +67 -0
  20. package/.next/server/chunks/415.js +32 -0
  21. package/.next/server/chunks/843.js +2759 -0
  22. package/.next/server/chunks/990.js +134 -0
  23. package/.next/server/chunks/font-manifest.json +1 -0
  24. package/.next/server/font-manifest.json +1 -0
  25. package/.next/server/middleware-manifest.json +6 -0
  26. package/.next/server/pages/404.js +309 -0
  27. package/.next/server/pages/404.js.nft.json +1 -0
  28. package/.next/server/pages/_app.js +91 -0
  29. package/.next/server/pages/_app.js.nft.json +1 -0
  30. package/.next/server/pages/_document.js +800 -0
  31. package/.next/server/pages/_document.js.nft.json +1 -0
  32. package/.next/server/pages/_error.js +148 -0
  33. package/.next/server/pages/_error.js.nft.json +1 -0
  34. package/.next/server/pages/about.js +450 -0
  35. package/.next/server/pages/about.js.nft.json +1 -0
  36. package/.next/server/pages/index.js +453 -0
  37. package/.next/server/pages/index.js.nft.json +1 -0
  38. package/.next/server/pages/toolkit-demo.js +574 -0
  39. package/.next/server/pages/toolkit-demo.js.nft.json +1 -0
  40. package/.next/server/pages-manifest.json +9 -0
  41. package/.next/server/webpack-runtime.js +160 -0
  42. package/README.md +4 -4
  43. package/next-env.d.ts +1 -1
  44. package/package.json +2 -2
  45. package/pages/about.tsx +2 -2
  46. package/pages/index.tsx +2 -2
  47. package/pages/toolkit-demo.tsx +4 -4
@@ -0,0 +1,160 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({});
4
+ /************************************************************************/
5
+ /******/ // The module cache
6
+ /******/ var __webpack_module_cache__ = {};
7
+ /******/
8
+ /******/ // The require function
9
+ /******/ function __webpack_require__(moduleId) {
10
+ /******/ // Check if module is in cache
11
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
12
+ /******/ if (cachedModule !== undefined) {
13
+ /******/ return cachedModule.exports;
14
+ /******/ }
15
+ /******/ // Create a new module (and put it into the cache)
16
+ /******/ var module = __webpack_module_cache__[moduleId] = {
17
+ /******/ // no module.id needed
18
+ /******/ // no module.loaded needed
19
+ /******/ exports: {}
20
+ /******/ };
21
+ /******/
22
+ /******/ // Execute the module function
23
+ /******/ var threw = true;
24
+ /******/ try {
25
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
26
+ /******/ threw = false;
27
+ /******/ } finally {
28
+ /******/ if(threw) delete __webpack_module_cache__[moduleId];
29
+ /******/ }
30
+ /******/
31
+ /******/ // Return the exports of the module
32
+ /******/ return module.exports;
33
+ /******/ }
34
+ /******/
35
+ /******/ // expose the modules object (__webpack_modules__)
36
+ /******/ __webpack_require__.m = __webpack_modules__;
37
+ /******/
38
+ /************************************************************************/
39
+ /******/ /* webpack/runtime/compat get default export */
40
+ /******/ (() => {
41
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
42
+ /******/ __webpack_require__.n = (module) => {
43
+ /******/ var getter = module && module.__esModule ?
44
+ /******/ () => (module['default']) :
45
+ /******/ () => (module);
46
+ /******/ __webpack_require__.d(getter, { a: getter });
47
+ /******/ return getter;
48
+ /******/ };
49
+ /******/ })();
50
+ /******/
51
+ /******/ /* webpack/runtime/define property getters */
52
+ /******/ (() => {
53
+ /******/ // define getter functions for harmony exports
54
+ /******/ __webpack_require__.d = (exports, definition) => {
55
+ /******/ for(var key in definition) {
56
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
57
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
58
+ /******/ }
59
+ /******/ }
60
+ /******/ };
61
+ /******/ })();
62
+ /******/
63
+ /******/ /* webpack/runtime/ensure chunk */
64
+ /******/ (() => {
65
+ /******/ __webpack_require__.f = {};
66
+ /******/ // This file contains only the entry chunk.
67
+ /******/ // The chunk loading function for additional chunks
68
+ /******/ __webpack_require__.e = (chunkId) => {
69
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
70
+ /******/ __webpack_require__.f[key](chunkId, promises);
71
+ /******/ return promises;
72
+ /******/ }, []));
73
+ /******/ };
74
+ /******/ })();
75
+ /******/
76
+ /******/ /* webpack/runtime/get javascript chunk filename */
77
+ /******/ (() => {
78
+ /******/ // This function allow to reference async chunks and sibling chunks for the entrypoint
79
+ /******/ __webpack_require__.u = (chunkId) => {
80
+ /******/ // return url for filenames based on template
81
+ /******/ return "" + chunkId + ".js";
82
+ /******/ };
83
+ /******/ })();
84
+ /******/
85
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
86
+ /******/ (() => {
87
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
88
+ /******/ })();
89
+ /******/
90
+ /******/ /* webpack/runtime/make namespace object */
91
+ /******/ (() => {
92
+ /******/ // define __esModule on exports
93
+ /******/ __webpack_require__.r = (exports) => {
94
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
95
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
96
+ /******/ }
97
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
98
+ /******/ };
99
+ /******/ })();
100
+ /******/
101
+ /******/ /* webpack/runtime/startup entrypoint */
102
+ /******/ (() => {
103
+ /******/ __webpack_require__.X = (result, chunkIds, fn) => {
104
+ /******/ // arguments: chunkIds, moduleId are deprecated
105
+ /******/ var moduleId = chunkIds;
106
+ /******/ if(!fn) chunkIds = result, fn = () => (__webpack_require__(__webpack_require__.s = moduleId));
107
+ /******/ chunkIds.map(__webpack_require__.e, __webpack_require__)
108
+ /******/ var r = fn();
109
+ /******/ return r === undefined ? result : r;
110
+ /******/ }
111
+ /******/ })();
112
+ /******/
113
+ /******/ /* webpack/runtime/require chunk loading */
114
+ /******/ (() => {
115
+ /******/ // no baseURI
116
+ /******/
117
+ /******/ // object to store loaded chunks
118
+ /******/ // "1" means "loaded", otherwise not loaded yet
119
+ /******/ var installedChunks = {
120
+ /******/ 658: 1
121
+ /******/ };
122
+ /******/
123
+ /******/ // no on chunks loaded
124
+ /******/
125
+ /******/ var installChunk = (chunk) => {
126
+ /******/ var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;
127
+ /******/ for(var moduleId in moreModules) {
128
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
129
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
130
+ /******/ }
131
+ /******/ }
132
+ /******/ if(runtime) runtime(__webpack_require__);
133
+ /******/ for(var i = 0; i < chunkIds.length; i++)
134
+ /******/ installedChunks[chunkIds[i]] = 1;
135
+ /******/
136
+ /******/ };
137
+ /******/
138
+ /******/ // require() chunk loading for javascript
139
+ /******/ __webpack_require__.f.require = (chunkId, promises) => {
140
+ /******/ // "1" is the signal for "already loaded"
141
+ /******/ if(!installedChunks[chunkId]) {
142
+ /******/ if(658 != chunkId) {
143
+ /******/ installChunk(require("./chunks/" + __webpack_require__.u(chunkId)));
144
+ /******/ } else installedChunks[chunkId] = 1;
145
+ /******/ }
146
+ /******/ };
147
+ /******/
148
+ /******/ module.exports = __webpack_require__;
149
+ /******/ __webpack_require__.C = installChunk;
150
+ /******/
151
+ /******/ // no HMR
152
+ /******/
153
+ /******/ // no HMR manifest
154
+ /******/ })();
155
+ /******/
156
+ /************************************************************************/
157
+ /******/
158
+ /******/
159
+ /******/ })()
160
+ ;
package/README.md CHANGED
@@ -62,10 +62,10 @@ This template demonstrates how to use all aspects of the ReactPress Toolkit:
62
62
  ### 1. API Client Usage
63
63
 
64
64
  ```typescript
65
- import { createApiInstance } from '@fecommunity/reactpress-toolkit';
65
+ import { http } from '@fecommunity/reactpress-toolkit';
66
66
 
67
67
  // Create a custom API instance
68
- const customApi = createApiInstance({
68
+ const customApi = http.createApiInstance({
69
69
  baseURL: 'https://api.gaoredu.com/'
70
70
  });
71
71
 
@@ -111,14 +111,14 @@ if (utils.ApiError.isInstance(error)) {
111
111
  The toolkit demo page shows a complete example of using all toolkit features:
112
112
 
113
113
  ```typescript
114
- import { createApiInstance } from '@fecommunity/reactpress-toolkit';
114
+ import { http } from '@fecommunity/reactpress-toolkit';
115
115
  import { types, utils } from '@fecommunity/reactpress-toolkit';
116
116
 
117
117
  // Type definitions
118
118
  type IArticle = types.IArticle;
119
119
 
120
120
  // API client with retry mechanism
121
- const customApi = createApiInstance({
121
+ const customApi = http.createApiInstance({
122
122
  baseURL: 'https://api.gaoredu.com/',
123
123
  retry: {
124
124
  retries: 3,
package/next-env.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  /// <reference types="next/image-types/global" />
3
3
 
4
4
  // NOTE: This file should not be edited
5
- // see https://nextjs.org/docs/basic-features/typescript for more information.
5
+ // see https://nextjs.org/docs/basic-features/typescript for more information.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@fecommunity/reactpress-template-hello-world",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "A minimal hello-world template for ReactPress using Next.js Pages Router",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "create-reactpress-hello-world": "./bin/create-hello-world.js"
8
8
  },
9
9
  "dependencies": {
10
- "@fecommunity/reactpress-toolkit": "1.0.0-beta.3",
10
+ "@fecommunity/reactpress-toolkit": "1.0.0-beta.4",
11
11
  "next": "^12.3.4",
12
12
  "react": "17.0.2",
13
13
  "react-dom": "17.0.2",
package/pages/about.tsx CHANGED
@@ -1,13 +1,13 @@
1
1
  import { GetStaticProps } from 'next';
2
2
  import Head from 'next/head';
3
3
  import Link from 'next/link';
4
- import { createApiInstance } from '@fecommunity/reactpress-toolkit';
4
+ import { http } from '@fecommunity/reactpress-toolkit';
5
5
  import { types, utils } from '@fecommunity/reactpress-toolkit';
6
6
  import Header from '../components/Header';
7
7
  import Footer from '../components/Footer';
8
8
 
9
9
  // Create a custom API instance with the desired baseURL
10
- const customApi = createApiInstance({
10
+ const customApi = http.createApiInstance({
11
11
  baseURL: 'https://api.gaoredu.com/'
12
12
  });
13
13
 
package/pages/index.tsx CHANGED
@@ -1,13 +1,13 @@
1
1
  import { GetStaticProps } from 'next';
2
2
  import Head from 'next/head';
3
3
  import Link from 'next/link';
4
- import { createApiInstance } from '@fecommunity/reactpress-toolkit';
4
+ import { http } from '@fecommunity/reactpress-toolkit';
5
5
  import { types, utils } from '@fecommunity/reactpress-toolkit';
6
6
  import Header from '../components/Header';
7
7
  import Footer from '../components/Footer';
8
8
 
9
9
  // Create a custom API instance with the desired baseURL
10
- const customApi = createApiInstance({
10
+ const customApi = http.createApiInstance({
11
11
  baseURL: 'https://api.gaoredu.com/'
12
12
  });
13
13
 
@@ -1,12 +1,12 @@
1
1
  import { GetStaticProps } from 'next';
2
2
  import Head from 'next/head';
3
3
  import Link from 'next/link';
4
- import { types, utils, createApiInstance } from '@fecommunity/reactpress-toolkit';
4
+ import { http, api, types, utils } from '@fecommunity/reactpress-toolkit';
5
5
  import Header from '../components/Header';
6
6
  import Footer from '../components/Footer';
7
7
 
8
8
  // Create a custom API instance with the desired baseURL
9
- const customApi = createApiInstance({
9
+ const customApi = http.createApiInstance({
10
10
  baseURL: 'https://api.gaoredu.com/',
11
11
  });
12
12
 
@@ -65,7 +65,7 @@ export default function ToolkitDemo({ articles, categories, tags, stats }: Toolk
65
65
  <div className="features-grid">
66
66
  <div className="feature-card">
67
67
  <h3 className="feature-title">API Client</h3>
68
- <p className="feature-description">Use createApiInstance() to create custom API clients</p>
68
+ <p className="feature-description">Use http.createApiInstance() to create custom API clients</p>
69
69
  </div>
70
70
  <div className="feature-card">
71
71
  <h3 className="feature-title">Types</h3>
@@ -487,4 +487,4 @@ export const getStaticProps: GetStaticProps<ToolkitDemoProps> = async () => {
487
487
  revalidate: 60,
488
488
  };
489
489
  }
490
- };
490
+ };