Skip to content

Commit b89795d

Browse files
committed
refactor/Remove Vue!!!
1 parent fb5331f commit b89795d

30 files changed

+17
-1731
lines changed

app/javascript/modal.vue renamed to app/assets/stylesheets/modal.scss

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,4 @@
1-
<template>
2-
<div @click.prevent="()=> { }" class="modal-mask">
3-
<div class="modal-wrapper">
4-
<card class="modal-container">
5-
<div class="modal-header">
6-
<h3>{{ header }}</h3>
7-
<span>
8-
<img class="modal-close" @click.prevent="$emit('close')" src="/icons/cancel.svg" width="22">
9-
</span>
10-
</div>
11-
12-
<div class="modal-body">
13-
<slot name="body">
14-
default body
15-
</slot>
16-
</div>
17-
18-
<!-- <div class="modal-footer">
19-
<slot name="footer">
20-
default footer
21-
<button class="modal-default-button" @click="$emit('close')">
22-
close
23-
</button>
24-
</slot>
25-
</div> -->
26-
</card>
27-
</div>
28-
</div>
29-
</template>
30-
31-
<script>
32-
import Card from './card';
33-
import { EventBus } from './event-bus';
34-
35-
export default {
36-
components: { Card },
37-
38-
props: {
39-
header: { required: true, type: String }
40-
},
41-
42-
created() {
43-
EventBus.$on('closeModal', () => this.$emit('close'))
44-
}
45-
}
46-
</script>
47-
48-
<style lang="scss">
49-
.modal-mask {
1+
.modal-mask {
502
position: fixed;
513
z-index: 4;
524
top: 0;
@@ -127,4 +79,3 @@ export default {
12779
-webkit-transform: scale(1.1);
12880
transform: scale(1.1);
12981
}
130-
</style>

app/javascript/action-button-bar.vue

Lines changed: 0 additions & 132 deletions
This file was deleted.

app/javascript/action-button.vue

Lines changed: 0 additions & 46 deletions
This file was deleted.

app/javascript/action-icon.vue

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)