Skip to content

Commit

Permalink
refactor(repl): update default template and add warning on mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Nov 27, 2020
1 parent ce67088 commit 69cb636
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions repl/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</template>

<script setup>
import { ref } from "vue";
import { ref, onMounted } from "vue";
import { notification } from "ant-design-vue";
import Render from "./components/Render.vue";
import CodeMirror from "./components/CodeMirror.vue";
Expand All @@ -51,8 +51,8 @@ import TEMPLATE_DEFAULT from "./template/default";
const loading = ref(false);
const template = ref(TEMPLATE_DEFAULT);
const form = ref({
username: "denoland",
repo: "deno",
username: "axetroy",
repo: "whatchanged",
version: "HEAD~",
});
Expand Down Expand Up @@ -94,6 +94,15 @@ function onSubmit() {
loading.value = false;
});
}
onMounted(() => {
notification.warn({
message: "IMPORTANT",
description:
"Hi ❤️ We are useing the free resources for backend and there is a limit to the memory size. so, it may fail to generate for large projects.",
duration: 30,
});
});
</script>
<style lang="scss" scoped>
Expand Down

0 comments on commit 69cb636

Please sign in to comment.