Skip to content

Commit

Permalink
format source
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Apr 20, 2022
1 parent 0d9e520 commit 96593bf
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 32 deletions.
10 changes: 5 additions & 5 deletions apollo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ const path = require("path");
const { loadEnv } = require("vue-cli-plugin-apollo/utils/load-env");
const env = loadEnv([
path.resolve(__dirname, ".env"),
path.resolve(__dirname, ".env.local")
path.resolve(__dirname, ".env.local"),
]);

module.exports = {
client: {
service: env.VUE_APP_APOLLO_ENGINE_SERVICE,
includes: ["src/**/*.{js,jsx,ts,tsx,vue,gql}"]
includes: ["src/**/*.{js,jsx,ts,tsx,vue,gql}"],
},
service: {
name: env.VUE_APP_APOLLO_ENGINE_SERVICE,
localSchemaFile: path.resolve(
__dirname,
"./node_modules/.temp/graphql/schema.json"
)
),
},
engine: {
endpoint: process.env.APOLLO_ENGINE_API_ENDPOINT,
apiKey: env.VUE_APP_APOLLO_ENGINE_KEY
}
apiKey: env.VUE_APP_APOLLO_ENGINE_KEY,
},
};
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"]
presets: ["@vue/cli-plugin-babel/preset"],
};
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
preset: "@vue/cli-plugin-unit-jest"
preset: "@vue/cli-plugin-unit-jest",
};
2 changes: 1 addition & 1 deletion src/components/CodeExec/CodeCol.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ export default {
content: "";
font-size: 24px;
}
</style>
</style>
7 changes: 2 additions & 5 deletions src/components/CodeExec/SystemBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export default {
},
computed: {
classes() {
return this.state.prompting
? ["primary", "on-primary--text"]
: [];
return this.state.prompting ? ["primary", "on-primary--text"] : [];
},
basename() {
if (!this.state) return null;
Expand All @@ -32,5 +30,4 @@ export default {
};
</script>

<style>
</style>
<style></style>
1 change: 0 additions & 1 deletion src/components/LayoutScript.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
</div>
</template>


<script>
import { mapStores } from "pinia";
import * as monaco from "monaco-editor";
Expand Down
3 changes: 1 addition & 2 deletions src/components/Stdout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,4 @@ export default {
};
</script>

<style>
</style>
<style></style>
8 changes: 4 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import App from "./App.vue";
import router from "./router";
import vuetify from "./plugins/vuetify";
import { createProvider } from "./vue-apollo";
import { createPinia, PiniaVuePlugin } from 'pinia'
import { createPinia, PiniaVuePlugin } from "pinia";

Vue.use(PiniaVuePlugin)
Vue.use(PiniaVuePlugin);
Vue.config.productionTip = false;

const pinia = createPinia()
const pinia = createPinia();

new Vue({
router,
vuetify,
pinia,
apolloProvider: createProvider(),
render: h => h(App)
render: (h) => h(App),
}).$mount("#app");
5 changes: 4 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default {
height: calc(100% - 2 * 12px);
width: calc(100% - 2 * 12px);
grid-template-columns: minmax(100px, 1fr);
grid-template-rows: min-content min-content minmax(240px, 1fr) minmax(100px, 20vh);
grid-template-rows: min-content min-content minmax(240px, 1fr) minmax(
100px,
20vh
);
grid-template-areas: "ctrl" "exception" "code" "stdout";
row-gap: 6px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/Runs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<!-- <td :colspan="headers.length" style="width: 80%"> -->
<td :colspan="headers.length">
<div>
<!-- <div style="width: 90%; overflow-x: auto"> -->
<!-- <div style="width: 90%; overflow-x: auto"> -->
<pre>{{ item.script }}</pre>
<pre>{{ item.exception }}</pre>
</div>
Expand Down Expand Up @@ -120,4 +120,4 @@ tbody {
width: 100%;
overflow-x: hidden !important;
} */
</style>
</style>
14 changes: 7 additions & 7 deletions src/vue-apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vue from "vue";
import VueApollo from "vue-apollo";
import {
createApolloClient,
restartWebsockets
restartWebsockets,
} from "vue-cli-plugin-apollo/graphql-client";

// Install the vue plugin
Expand All @@ -16,7 +16,7 @@ const httpEndpoint =
process.env.VUE_APP_GRAPHQL_HTTP || "http://localhost:4000/graphql";

// WebSockert endpoint. "ws://" for "http://" and "wss://" for "https://"
const wsEndpoint = httpEndpoint.replace(/^http/i, "ws");
const wsEndpoint = httpEndpoint.replace(/^http/i, "ws");

// Config
const defaultOptions = {
Expand All @@ -33,7 +33,7 @@ const defaultOptions = {
// You need to pass a `wsEndpoint` for this to work
websocketsOnly: false,
// Is being rendered on the server?
ssr: false
ssr: false,

// Override default apollo link
// note: don't override httpLink here, specify httpLink options in the
Expand All @@ -58,7 +58,7 @@ export function createProvider(options = {}) {
// Create apollo client
const { apolloClient, wsClient } = createApolloClient({
...defaultOptions,
...options
...options,
});
apolloClient.wsClient = wsClient;

Expand All @@ -67,8 +67,8 @@ export function createProvider(options = {}) {
defaultClient: apolloClient,
defaultOptions: {
$query: {
fetchPolicy: 'network-only',
}
fetchPolicy: "network-only",
},
},
errorHandler(error) {
// eslint-disable-next-line no-console
Expand All @@ -77,7 +77,7 @@ export function createProvider(options = {}) {
"background: red; color: white; padding: 2px 4px; border-radius: 3px; font-weight: bold;",
error.message
);
}
},
});

return apolloProvider;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/example.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("HelloWorld.vue", () => {
it("renders props.msg when passed", () => {
const msg = "new message";
const wrapper = shallowMount(HelloWorld, {
propsData: { msg }
propsData: { msg },
});
expect(wrapper.text()).toMatch(msg);
});
Expand Down
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const monacoWebpackPlugin = require('monaco-editor-webpack-plugin')
const monacoWebpackPlugin = require("monaco-editor-webpack-plugin");
module.exports = {
configureWebpack: {
plugins: [new monacoWebpackPlugin()],
Expand Down

0 comments on commit 96593bf

Please sign in to comment.