You've already forked random-web-tools
Add docker rename volume tool
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import cronstrue from 'cronstrue';
|
||||
import cronstrue from "cronstrue";
|
||||
import MonacoEditor from "@/components/MonacoEditor.vue";
|
||||
|
||||
export default {
|
||||
@ -26,15 +26,15 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
toolData: {
|
||||
data: '* * * * *',
|
||||
data: "* * * * *"
|
||||
},
|
||||
toolResult: '',
|
||||
toolResult: ""
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.toolResult = cronstrue.toString(this.toolData.data, {
|
||||
use24HourTimeFormat: true,
|
||||
verbose: true,
|
||||
verbose: true
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
@ -42,14 +42,14 @@ export default {
|
||||
try {
|
||||
this.toolResult = cronstrue.toString(this.toolData.data, {
|
||||
use24HourTimeFormat: true,
|
||||
verbose: true,
|
||||
verbose: true
|
||||
});
|
||||
} catch (e) {
|
||||
this.toolResult = 'invalid syntax';
|
||||
this.toolResult = "invalid syntax";
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
Reference in New Issue
Block a user