├── .eslintignore ├── .eslintrc ├── .github └── workflows │ ├── azure-static-web-apps-black-grass-002fdad03.yml │ ├── azure.yml │ ├── cloudflare.yml │ └── gh-pages.yml ├── .gitignore ├── .output └── server │ └── .gitkeep ├── README.md ├── assets ├── camping.svg └── drop_the_quote.svg ├── components ├── Button.vue ├── Navbar.vue └── Sidebar.vue ├── data └── quotes.json ├── layouts └── default.vue ├── netlify.toml ├── nuxt.config.js ├── package.json ├── pages ├── _.vue ├── about.vue ├── api.vue └── graphql.vue ├── plugins └── rendertime.server.js ├── renovate.json ├── scripts └── server.js ├── server ├── graphql.js └── hello.js ├── static ├── icon.png └── robots.txt ├── utils └── index.js ├── vercel.json ├── wrangler.toml └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | .nuxt 2 | dist 3 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "@nuxtjs" 4 | ], 5 | "globals": { 6 | "$fetch": "readonly" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.github/workflows/azure-static-web-apps-black-grass-002fdad03.yml: -------------------------------------------------------------------------------- 1 | name: Azure Static Web Apps CI/CD 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | build_and_deploy_job: 10 | if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') 11 | runs-on: ubuntu-latest 12 | name: Build and Deploy Job 13 | steps: 14 | - uses: actions/checkout@v2 15 | with: 16 | submodules: true 17 | - name: Build And Deploy 18 | id: builddeploy 19 | uses: Azure/static-web-apps-deploy@v0.0.1-preview 20 | with: 21 | azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_GRASS_002FDAD03 }} 22 | repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) 23 | action: "upload" 24 | ###### Repository/Build Configurations - These values can be configured to match you app requirements. ###### 25 | # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig 26 | app_location: "/" # App source code path 27 | api_location: ".output/server" # Api source code path - optional 28 | output_location: ".output/public" # Built app content directory - optional 29 | ###### End of Repository/Build Configurations ###### 30 | 31 | close_pull_request_job: 32 | if: github.event_name == 'pull_request' && github.event.action == 'closed' 33 | runs-on: ubuntu-latest 34 | name: Close Pull Request Job 35 | steps: 36 | - name: Close Pull Request 37 | id: closepullrequest 38 | uses: Azure/static-web-apps-deploy@v0.0.1-preview 39 | with: 40 | azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_GRASS_002FDAD03 }} 41 | action: "close" 42 | -------------------------------------------------------------------------------- /.github/workflows/azure.yml: -------------------------------------------------------------------------------- 1 | name: azure 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | - azure 8 | 9 | jobs: 10 | deploy: 11 | runs-on: ${{ matrix.os }} 12 | 13 | strategy: 14 | matrix: 15 | os: [ubuntu-latest] 16 | node: [14] 17 | 18 | steps: 19 | - uses: actions/setup-node@v2 20 | with: 21 | node-version: ${{ matrix.node }} 22 | 23 | - name: Checkout 24 | uses: actions/checkout@master 25 | 26 | - name: Get yarn cache directory path 27 | id: yarn-cache-dir-path 28 | run: echo "::set-output name=dir::$(yarn cache dir)" 29 | 30 | - uses: actions/cache@v2 31 | id: yarn-cache 32 | with: 33 | path: ${{ steps.yarn-cache-dir-path.outputs.dir }} 34 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} 35 | restore-keys: | 36 | ${{ runner.os }}-yarn-azure 37 | 38 | - name: Install Dependencies 39 | if: steps.cache.outputs.cache-hit != 'true' 40 | run: yarn 41 | 42 | - name: Build 43 | run: npm run build 44 | env: 45 | NITRO_PRESET: azure_functions 46 | 47 | - name: "Deploy to Azure Functions" 48 | uses: Azure/functions-action@v1 49 | with: 50 | app-name: nuxt-nitro 51 | package: .output/deploy.zip 52 | publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} 53 | -------------------------------------------------------------------------------- /.github/workflows/cloudflare.yml: -------------------------------------------------------------------------------- 1 | name: cloudflare 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | deploy: 10 | runs-on: ${{ matrix.os }} 11 | 12 | strategy: 13 | matrix: 14 | os: [ ubuntu-latest ] 15 | node: [ 14 ] 16 | 17 | steps: 18 | - uses: actions/setup-node@v2 19 | with: 20 | node-version: ${{ matrix.node }} 21 | 22 | - name: Checkout 23 | uses: actions/checkout@master 24 | 25 | - name: Get yarn cache directory path 26 | id: yarn-cache-dir-path 27 | run: echo "::set-output name=dir::$(yarn cache dir)" 28 | 29 | - uses: actions/cache@v2 30 | id: yarn-cache 31 | with: 32 | path: ${{ steps.yarn-cache-dir-path.outputs.dir }} 33 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} 34 | restore-keys: | 35 | ${{ runner.os }}-yarn-cloudflare 36 | 37 | - name: Install Dependencies 38 | if: steps.cache.outputs.cache-hit != 'true' 39 | run: yarn 40 | 41 | - name: Build 42 | run: npm run build 43 | env: 44 | NITRO_PRESET: cloudflare 45 | 46 | - name: Publish to Cloudflare 47 | uses: cloudflare/wrangler-action@1.3.0 48 | with: 49 | apiToken: ${{ secrets.CF_API_TOKEN }} 50 | -------------------------------------------------------------------------------- /.github/workflows/gh-pages.yml: -------------------------------------------------------------------------------- 1 | name: gh-pages 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | deploy: 10 | runs-on: ${{ matrix.os }} 11 | 12 | strategy: 13 | matrix: 14 | os: [ ubuntu-latest ] 15 | node: [ 14 ] 16 | 17 | steps: 18 | - uses: actions/setup-node@v2 19 | with: 20 | node-version: ${{ matrix.node }} 21 | 22 | - name: Checkout 23 | uses: actions/checkout@master 24 | 25 | - name: Get yarn cache directory path 26 | id: yarn-cache-dir-path 27 | run: echo "::set-output name=dir::$(yarn cache dir)" 28 | 29 | - uses: actions/cache@v2 30 | id: yarn-cache 31 | with: 32 | path: ${{ steps.yarn-cache-dir-path.outputs.dir }} 33 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} 34 | restore-keys: | 35 | ${{ runner.os }}-yarn-gh-pages 36 | 37 | - name: Install Dependencies 38 | if: steps.cache.outputs.cache-hit != 'true' 39 | run: yarn 40 | 41 | - name: Build 42 | run: npm run build 43 | env: 44 | NITRO_PRESET: browser 45 | NUXT_ROUTER_BASE: /nitro-demo/ 46 | 47 | - name: Deploy to Github Pages 48 | uses: JamesIves/github-pages-deploy-action@4.1.5 49 | with: 50 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 51 | BRANCH: gh-pages 52 | FOLDER: '.output/public' 53 | CLEAN: true 54 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .nuxt 3 | dist 4 | *.log* 5 | .vercel 6 | .netlify 7 | .vercel_build_output 8 | .output 9 | -------------------------------------------------------------------------------- /.output/server/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nuxt/nitro-demo/d73a4e55b8374215e49951b419e45772af39f351/.output/server/.gitkeep -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nitro Project Demo 2 | 3 | 4 | - Vercel: https://nitro-demo.vercel.app 5 | - Netlify: https://nitro-demo.netlify.app 6 | - Cloudflare Workers: https://nitro-demo.nuxt.workers.dev 7 | - Github Pages (Service Worker): https://nuxt.github.io/nitro-demo 8 | - Azure Functions: https://nuxt-sigma.azurewebsites.net 9 | - Azure Static Web Apps: https://nitro-azure-demo.nuxtjs.org/ 10 | 11 | -------------------------------------------------------------------------------- /assets/camping.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/drop_the_quote.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/Button.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 22 | -------------------------------------------------------------------------------- /components/Navbar.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 78 | -------------------------------------------------------------------------------- /components/Sidebar.vue: -------------------------------------------------------------------------------- 1 | 42 | 43 | 91 | 92 | 151 | -------------------------------------------------------------------------------- /data/quotes.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "quote":"Life isn’t about getting and having, it’s about giving and being.", 4 | "author":"Kevin Kruse" 5 | }, 6 | { 7 | "quote":"Whatever the mind of man can conceive and believe, it can achieve.", 8 | "author":"Napoleon Hill" 9 | }, 10 | { 11 | "quote":"Strive not to be a success, but rather to be of value.", 12 | "author":"Albert Einstein" 13 | }, 14 | { 15 | "quote":"Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", 16 | "author":"Robert Frost" 17 | }, 18 | { 19 | "quote":"I attribute my success to this: I never gave or took any excuse.", 20 | "author":"Florence Nightingale" 21 | }, 22 | { 23 | "quote":"You miss 100% of the shots you don’t take.", 24 | "author":"Wayne Gretzky" 25 | }, 26 | { 27 | "quote":"I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.", 28 | "author":"Michael Jordan" 29 | }, 30 | { 31 | "quote":"The most difficult thing is the decision to act, the rest is merely tenacity.", 32 | "author":"Amelia Earhart" 33 | }, 34 | { 35 | "quote":"Every strike brings me closer to the next home run.", 36 | "author":"Babe Ruth" 37 | }, 38 | { 39 | "quote":"Definiteness of purpose is the starting point of all achievement.", 40 | "author":"W. Clement Stone" 41 | }, 42 | { 43 | "quote":"We must balance conspicuous consumption with conscious capitalism.", 44 | "author":"Kevin Kruse" 45 | }, 46 | { 47 | "quote":"Life is what happens to you while you’re busy making other plans.", 48 | "author":"John Lennon" 49 | }, 50 | { 51 | "quote":"We become what we think about.", 52 | "author":"Earl Nightingale" 53 | }, 54 | { 55 | "quote":"Twenty years from now you will be more disappointed by the things that you didn’t do than by the ones you did do, so throw off the bowlines, sail away from safe harbor, catch the trade winds in your sails. Explore, Dream, Discover.", 56 | "author":"Mark Twain" 57 | }, 58 | { 59 | "quote":"Life is 10% what happens to me and 90% of how I react to it.", 60 | "author":"Charles Swindoll" 61 | }, 62 | { 63 | "quote":"The most common way people give up their power is by thinking they don’t have any.", 64 | "author":"Alice Walker" 65 | }, 66 | { 67 | "quote":"The mind is everything. What you think you become.", 68 | "author":"Buddha" 69 | }, 70 | { 71 | "quote":"The best time to plant a tree was 20 years ago. The second best time is now.", 72 | "author":"Chinese Proverb" 73 | }, 74 | { 75 | "quote":"An unexamined life is not worth living.", 76 | "author":"Socrates" 77 | }, 78 | { 79 | "quote":"Eighty percent of success is showing up.", 80 | "author":"Woody Allen" 81 | }, 82 | { 83 | "quote":"Your time is limited, so don’t waste it living someone else’s life.", 84 | "author":"Steve Jobs" 85 | }, 86 | { 87 | "quote":"Winning isn’t everything, but wanting to win is.", 88 | "author":"Vince Lombardi" 89 | }, 90 | { 91 | "quote":"I am not a product of my circumstances. I am a product of my decisions.", 92 | "author":"Stephen Covey" 93 | }, 94 | { 95 | "quote":"Every child is an artist. The problem is how to remain an artist once he grows up.", 96 | "author":"Pablo Picasso" 97 | }, 98 | { 99 | "quote":"You can never cross the ocean until you have the courage to lose sight of the shore.", 100 | "author":"Christopher Columbus" 101 | }, 102 | { 103 | "quote":"I’ve learned that people will forget what you said, people will forget what you did, but people will never forget how you made them feel.", 104 | "author":"Maya Angelou" 105 | }, 106 | { 107 | "quote":"Either you run the day, or the day runs you.", 108 | "author":"Jim Rohn" 109 | }, 110 | { 111 | "quote":"Whether you think you can or you think you can’t, you’re right.", 112 | "author":"Henry Ford" 113 | }, 114 | { 115 | "quote":"The two most important days in your life are the day you are born and the day you find out why.", 116 | "author":"Mark Twain" 117 | }, 118 | { 119 | "quote":"Whatever you can do, or dream you can, begin it. Boldness has genius, power and magic in it.", 120 | "author":"Johann Wolfgang von Goethe" 121 | }, 122 | { 123 | "quote":"The best revenge is massive success.", 124 | "author":"Frank Sinatra" 125 | }, 126 | { 127 | "quote":"People often say that motivation doesn’t last. Well, neither does bathing. That’s why we recommend it daily.", 128 | "author":"Zig Ziglar" 129 | }, 130 | { 131 | "quote":"Life shrinks or expands in proportion to one’s courage.", 132 | "author":"Anais Nin" 133 | }, 134 | { 135 | "quote":"If you hear a voice within you say “you cannot paint,” then by all means paint and that voice will be silenced.", 136 | "author":"Vincent Van Gogh" 137 | }, 138 | { 139 | "quote":"There is only one way to avoid criticism: do nothing, say nothing, and be nothing.", 140 | "author":"Aristotle" 141 | }, 142 | { 143 | "quote":"Ask and it will be given to you; search, and you will find; knock and the door will be opened for you.", 144 | "author":"Jesus" 145 | }, 146 | { 147 | "quote":"The only person you are destined to become is the person you decide to be.", 148 | "author":"Ralph Waldo Emerson" 149 | }, 150 | { 151 | "quote":"Go confidently in the direction of your dreams. Live the life you have imagined.", 152 | "author":"Henry David Thoreau" 153 | }, 154 | { 155 | "quote":"When I stand before God at the end of my life, I would hope that I would not have a single bit of talent left and could say, I used everything you gave me.", 156 | "author":"Erma Bombeck" 157 | }, 158 | { 159 | "quote":"Few things can help an individual more than to place responsibility on him, and to let him know that you trust him.", 160 | "author":"Booker T. Washington" 161 | }, 162 | { 163 | "quote":"Certain things catch your eye, but pursue only those that capture the heart.", 164 | "author":" Ancient Indian Proverb" 165 | }, 166 | { 167 | "quote":"Believe you can and you’re halfway there.", 168 | "author":"Theodore Roosevelt" 169 | }, 170 | { 171 | "quote":"Everything you’ve ever wanted is on the other side of fear.", 172 | "author":"George Addair" 173 | }, 174 | { 175 | "quote":"We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light.", 176 | "author":"Plato" 177 | }, 178 | { 179 | "quote":"Teach thy tongue to say, “I do not know,” and thous shalt progress.", 180 | "author":"Maimonides" 181 | }, 182 | { 183 | "quote":"Start where you are. Use what you have. Do what you can.", 184 | "author":"Arthur Ashe" 185 | }, 186 | { 187 | "quote":"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy’. They told me I didn’t understand the assignment, and I told them they didn’t understand life.", 188 | "author":"John Lennon" 189 | }, 190 | { 191 | "quote":"Fall seven times and stand up eight.", 192 | "author":"Japanese Proverb" 193 | }, 194 | { 195 | "quote":"When one door of happiness closes, another opens, but often we look so long at the closed door that we do not see the one that has been opened for us.", 196 | "author":"Helen Keller" 197 | }, 198 | { 199 | "quote":"Everything has beauty, but not everyone can see.", 200 | "author":"Confucius" 201 | }, 202 | { 203 | "quote":"How wonderful it is that nobody need wait a single moment before starting to improve the world.", 204 | "author":"Anne Frank" 205 | }, 206 | { 207 | "quote":"When I let go of what I am, I become what I might be.", 208 | "author":"Lao Tzu" 209 | }, 210 | { 211 | "quote":"Life is not measured by the number of breaths we take, but by the moments that take our breath away.", 212 | "author":"Maya Angelou" 213 | }, 214 | { 215 | "quote":"Happiness is not something readymade. It comes from your own actions.", 216 | "author":"Dalai Lama" 217 | }, 218 | { 219 | "quote":"If you’re offered a seat on a rocket ship, don’t ask what seat! Just get on.", 220 | "author":"Sheryl Sandberg" 221 | }, 222 | { 223 | "quote":"First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods. Third, adjust all your means to that end.", 224 | "author":"Aristotle" 225 | }, 226 | { 227 | "quote":"If the wind will not serve, take to the oars.", 228 | "author":"Latin Proverb" 229 | }, 230 | { 231 | "quote":"You can’t fall if you don’t climb. But there’s no joy in living your whole life on the ground.", 232 | "author":"Unknown" 233 | }, 234 | { 235 | "quote":"We must believe that we are gifted for something, and that this thing, at whatever cost, must be attained.", 236 | "author":"Marie Curie" 237 | }, 238 | { 239 | "quote":"Too many of us are not living our dreams because we are living our fears.", 240 | "author":"Les Brown" 241 | }, 242 | { 243 | "quote":"Challenges are what make life interesting and overcoming them is what makes life meaningful.", 244 | "author":"Joshua J. Marine" 245 | }, 246 | { 247 | "quote":"If you want to lift yourself up, lift up someone else.", 248 | "author":"Booker T. Washington" 249 | }, 250 | { 251 | "quote":"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.", 252 | "author":"Leonardo da Vinci" 253 | }, 254 | { 255 | "quote":"Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless.", 256 | "author":"Jamie Paolinetti" 257 | }, 258 | { 259 | "quote":"You take your life in your own hands, and what happens? A terrible thing, no one to blame.", 260 | "author":"Erica Jong" 261 | }, 262 | { 263 | "quote":"What’s money? A man is a success if he gets up in the morning and goes to bed at night and in between does what he wants to do.", 264 | "author":"Bob Dylan" 265 | }, 266 | { 267 | "quote":"I didn’t fail the test. I just found 100 ways to do it wrong.", 268 | "author":"Benjamin Franklin" 269 | }, 270 | { 271 | "quote":"In order to succeed, your desire for success should be greater than your fear of failure.", 272 | "author":"Bill Cosby" 273 | }, 274 | { 275 | "quote":"A person who never made a mistake never tried anything new.", 276 | "author":" Albert Einstein" 277 | }, 278 | { 279 | "quote":"The person who says it cannot be done should not interrupt the person who is doing it.", 280 | "author":"Chinese Proverb" 281 | }, 282 | { 283 | "quote":"There are no traffic jams along the extra mile.", 284 | "author":"Roger Staubach" 285 | }, 286 | { 287 | "quote":"It is never too late to be what you might have been.", 288 | "author":"George Eliot" 289 | }, 290 | { 291 | "quote":"You become what you believe.", 292 | "author":"Oprah Winfrey" 293 | }, 294 | { 295 | "quote":"I would rather die of passion than of boredom.", 296 | "author":"Vincent van Gogh" 297 | }, 298 | { 299 | "quote":"A truly rich man is one whose children run into his arms when his hands are empty.", 300 | "author":"Unknown" 301 | }, 302 | { 303 | "quote":"It is not what you do for your children, but what you have taught them to do for themselves, that will make them successful human beings.", 304 | "author":"Ann Landers" 305 | }, 306 | { 307 | "quote":"If you want your children to turn out well, spend twice as much time with them, and half as much money.", 308 | "author":"Abigail Van Buren" 309 | }, 310 | { 311 | "quote":"Build your own dreams, or someone else will hire you to build theirs.", 312 | "author":"Farrah Gray" 313 | }, 314 | { 315 | "quote":"The battles that count aren’t the ones for gold medals. The struggles within yourself–the invisible battles inside all of us–that’s where it’s at.", 316 | "author":"Jesse Owens" 317 | }, 318 | { 319 | "quote":"Education costs money. But then so does ignorance.", 320 | "author":"Sir Claus Moser" 321 | }, 322 | { 323 | "quote":"I have learned over the years that when one’s mind is made up, this diminishes fear.", 324 | "author":"Rosa Parks" 325 | }, 326 | { 327 | "quote":"It does not matter how slowly you go as long as you do not stop.", 328 | "author":"Confucius" 329 | }, 330 | { 331 | "quote":"If you look at what you have in life, you’ll always have more. If you look at what you don’t have in life, you’ll never have enough.", 332 | "author":"Oprah Winfrey" 333 | }, 334 | { 335 | "quote":"Remember that not getting what you want is sometimes a wonderful stroke of luck.", 336 | "author":"Dalai Lama" 337 | }, 338 | { 339 | "quote":"You can’t use up creativity. The more you use, the more you have.", 340 | "author":"Maya Angelou" 341 | }, 342 | { 343 | "quote":"Dream big and dare to fail.", 344 | "author":"Norman Vaughan" 345 | }, 346 | { 347 | "quote":"Our lives begin to end the day we become silent about things that matter.", 348 | "author":"Martin Luther King Jr." 349 | }, 350 | { 351 | "quote":"Do what you can, where you are, with what you have.", 352 | "author":"Teddy Roosevelt" 353 | }, 354 | { 355 | "quote":"If you do what you’ve always done, you’ll get what you’ve always gotten.", 356 | "author":"Tony Robbins" 357 | }, 358 | { 359 | "quote":"Dreaming, after all, is a form of planning.", 360 | "author":"Gloria Steinem" 361 | }, 362 | { 363 | "quote":"It’s your place in the world; it’s your life. Go on and do all you can with it, and make it the life you want to live.", 364 | "author":"Mae Jemison" 365 | }, 366 | { 367 | "quote":"You may be disappointed if you fail, but you are doomed if you don’t try.", 368 | "author":"Beverly Sills" 369 | }, 370 | { 371 | "quote":"Remember no one can make you feel inferior without your consent.", 372 | "author":"Eleanor Roosevelt" 373 | }, 374 | { 375 | "quote":"Life is what we make it, always has been, always will be.", 376 | "author":"Grandma Moses" 377 | }, 378 | { 379 | "quote":"The question isn’t who is going to let me; it’s who is going to stop me.", 380 | "author":"Ayn Rand" 381 | }, 382 | { 383 | "quote":"When everything seems to be going against you, remember that the airplane takes off against the wind, not with it.", 384 | "author":"Henry Ford" 385 | }, 386 | { 387 | "quote":"It’s not the years in your life that count. It’s the life in your years.", 388 | "author":"Abraham Lincoln" 389 | }, 390 | { 391 | "quote":"Change your thoughts and you change your world.", 392 | "author":"Norman Vincent Peale" 393 | }, 394 | { 395 | "quote":"Either write something worth reading or do something worth writing.", 396 | "author":"Benjamin Franklin" 397 | }, 398 | { 399 | "quote":"Nothing is impossible, the word itself says, “I’m possible!”", 400 | "author":"–Audrey Hepburn" 401 | }, 402 | { 403 | "quote":"The only way to do great work is to love what you do.", 404 | "author":"Steve Jobs" 405 | }, 406 | { 407 | "quote":"If you can dream it, you can achieve it.", 408 | "author":"Zig Ziglar" 409 | } 410 | ] 411 | -------------------------------------------------------------------------------- /layouts/default.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 21 | 22 | 63 | -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [dev] 2 | command = "sleep 999999999" 3 | framework = "#custom" 4 | functions = ".output/server" 5 | port = 8888 6 | targetPort = 3000 7 | 8 | [build] 9 | command = "npm run generate" 10 | publish = "dist" 11 | functions = ".output/server" 12 | 13 | [[redirects]] 14 | from = "/*" 15 | to = "/.netlify/functions/index" 16 | status = 200 17 | -------------------------------------------------------------------------------- /nuxt.config.js: -------------------------------------------------------------------------------- 1 | import { version as nitroVersion } from '@nuxt/nitro/package.json' 2 | 3 | export default { 4 | components: true, 5 | target: 'static', 6 | 7 | buildModules: [ 8 | '@nuxt/bridge' 9 | // '@nuxtjs/pwa' 10 | ], 11 | 12 | plugins: [ 13 | './plugins/rendertime.server' 14 | ], 15 | 16 | router: { 17 | base: process.env.NUXT_ROUTER_BASE || '/' 18 | }, 19 | 20 | serverMiddleware: [ 21 | { path: '/api/hello', handle: '~/server/hello' } 22 | // { path: '/api/graphql', handle: '~/server/graphql' } 23 | ], 24 | 25 | generate: { 26 | fallback: '404.html', 27 | // Hybdrid mode only for /about 28 | crawler: false, 29 | exclude: [ 30 | /.*/ 31 | ], 32 | routes: [ 33 | '/about' 34 | ] 35 | }, 36 | 37 | nitro: { 38 | // minify: false 39 | // analyze: true 40 | }, 41 | 42 | publicRuntimeConfig: { 43 | nitroVersion: nitroVersion.split('.').pop() 44 | } 45 | 46 | // pwa: { 47 | // workbox: false, // TODO 48 | // meta: { 49 | // lang: 'en' 50 | // } 51 | // }, 52 | } 53 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "build": "nuxt generate", 5 | "dev": "nuxt dev", 6 | "generate": "nuxt generate", 7 | "lint": "eslint --ext .vue .", 8 | "start": "node .output/server/index.mjs", 9 | "test": "yarn lint --ext .vue" 10 | }, 11 | "devDependencies": { 12 | "@nuxt/bridge": "npm:@nuxt/bridge-edge@0.0.0-27183684.49f7b39", 13 | "@nuxtjs/eslint-config": "latest", 14 | "@nuxtjs/pwa": "latest", 15 | "apollo-server-core": "latest", 16 | "apollo-server-express": "latest", 17 | "encoding": "latest", 18 | "eslint": "latest", 19 | "express": "latest", 20 | "nuxt-edge": "latest", 21 | "timeago.js": "latest" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /pages/_.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 25 | 26 | 48 | -------------------------------------------------------------------------------- /pages/about.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 31 | -------------------------------------------------------------------------------- /pages/api.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 52 | -------------------------------------------------------------------------------- /pages/graphql.vue: -------------------------------------------------------------------------------- 1 |