+);
diff --git a/packages/demo-next/pages/_app.js b/packages/demo-next/pages/_app.js
index 1e1cec92..2fc3e070 100644
--- a/packages/demo-next/pages/_app.js
+++ b/packages/demo-next/pages/_app.js
@@ -1,7 +1,7 @@
-import '../styles/globals.css'
+import "../styles/globals.css";
function MyApp({ Component, pageProps }) {
- return
+ return ;
}
-export default MyApp
+export default MyApp;
diff --git a/packages/demo-next/pages/_document.js b/packages/demo-next/pages/_document.js
index 44b39477..90d2e4ad 100644
--- a/packages/demo-next/pages/_document.js
+++ b/packages/demo-next/pages/_document.js
@@ -1,7 +1,6 @@
import Document, { Html, Main, NextScript } from "next/document";
import Head from "next/head";
-
/** no-head-import-in-document */
class MyDocument extends Document {
render() {
diff --git a/packages/demo-next/pages/index.js b/packages/demo-next/pages/index.js
index 08145bba..72aadb5c 100644
--- a/packages/demo-next/pages/index.js
+++ b/packages/demo-next/pages/index.js
@@ -1,6 +1,6 @@
-import Head from 'next/head'
-import Image from 'next/image'
-import styles from '../styles/Home.module.css'
+import Head from "next/head";
+import Image from "next/image";
+import styles from "../styles/Home.module.css";
export default function Home() {
return (
@@ -17,7 +17,7 @@ export default function Home() {
- Get started by editing{' '}
+ Get started by editing{" "}
pages/index.js
@@ -58,12 +58,12 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
- Powered by{' '}
+ Powered by{" "}
- )
+ );
}
diff --git a/packages/demo-nuxt/README.md b/packages/demo-nuxt/README.md
index 44024ec0..042454a6 100644
--- a/packages/demo-nuxt/README.md
+++ b/packages/demo-nuxt/README.md
@@ -41,7 +41,6 @@ Layouts are a great help when you want to change the look and feel of your Nuxt
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/layouts).
-
### `pages`
This directory contains your application views and routes. Nuxt will read all the `*.vue` files inside this directory and setup Vue Router automatically.
diff --git a/packages/demo-nuxt/components/NuxtLogo.vue b/packages/demo-nuxt/components/NuxtLogo.vue
index 970eba0e..f038904c 100644
--- a/packages/demo-nuxt/components/NuxtLogo.vue
+++ b/packages/demo-nuxt/components/NuxtLogo.vue
@@ -1,6 +1,14 @@
-
diff --git a/packages/demo-nuxt/components/Tutorial.vue b/packages/demo-nuxt/components/Tutorial.vue
index 6440b8fb..4a2491a8 100644
--- a/packages/demo-nuxt/components/Tutorial.vue
+++ b/packages/demo-nuxt/components/Tutorial.vue
@@ -1,45 +1,115 @@
-
- We recommend you take a look at the Nuxt documentation, whether you are new or have previous experience with the framework.
+ We recommend you take a look at the
+ Nuxt documentation, whether you are new or have previous experience with the
+ framework.
- To get started, remove components/Tutorial.vue and start coding in pages/index.vue. Have fun!
+ To get started, remove
+ components/Tutorial.vue
+ and start coding in
+ pages/index.vue. Have fun!
diff --git a/server.js b/server.js
index 2e00d0f7..503a7cc3 100644
--- a/server.js
+++ b/server.js
@@ -1,25 +1,21 @@
-const express = require('express');
-const request = require('request'); // request is deprecated. Prefer using `axios` instead
-const helmet = require('helmet')
-
+const express = require("express");
+const request = require("request"); // request is deprecated. Prefer using `axios` instead
+const helmet = require("helmet");
const app = express(); // Sensitive
-
app.use(
helmet.expectCt({
- enforce: false // Sensitive. It should be true
+ enforce: false, // Sensitive. It should be true
})
-)
+);
-
-request('http://www.google.com', function (error, response, body) {
- console.error('error:', error); // Print the error if one occurred
- console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
- console.log('body:', body); // Print the HTML for the Google homepage.
+request("http://www.google.com", function (error, response, body) {
+ console.error("error:", error); // Print the error if one occurred
+ console.log("statusCode:", response && response.statusCode); // Print the response status code if a response was received
+ console.log("body:", body); // Print the HTML for the Google homepage.
});
-
-app.get('/', function (req, res) {
- res.send('hello')
+app.get("/", function (req, res) {
+ res.send("hello");
});