This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import { ref, computed } from 'vue' | |
import AdminItem from './Users/AdminItem.vue' | |
import DistinguishedItem from './Users/DistinguishedItem.vue' | |
import GuestUser from './Users/GuestUser.vue' | |
import SelectItem from './SelectItem.vue' | |
export default { | |
components: { | |
SelectItem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import { ref, defineComponent } from 'vue' | |
export default defineComponent({ | |
setup(_, context) { | |
const user = ref('guest') | |
const emitUserChange = () => { | |
context.emit('change-user', user.value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
defineProps({ | |
msg: { | |
type: String, | |
required: true | |
} | |
}) | |
</script> | |
<template> | |
<div class="item"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
defineProps({ | |
msg: { | |
type: String, | |
required: true | |
} | |
}) | |
</script> | |
<template> | |
<div class="item"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import { ref } from 'vue' | |
import AdminItem from './Users/AdminItem.vue' | |
import DistinguishedItem from './Users/DistinguishedItem.vue' | |
import GuestUser from './Users/GuestUser.vue' | |
import SelectItem from './SelectItem.vue' | |
export default { | |
setup() { | |
const user = ref('guest') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
defineProps({ | |
msg: { | |
type: String, | |
required: true | |
} | |
}) | |
</script> | |
<template> | |
<div class="item"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
defineProps({ | |
msg: { | |
type: String, | |
required: true | |
} | |
}) | |
</script> | |
<template> | |
<div class="item"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn check_user_meter_number() { | |
let mut customer_option: String = String::new(); | |
println!("Are you a new customer or an existing customer: "); | |
println!("1. Yes"); | |
println!("2. No"); | |
stdin() | |
.read_line(&mut customer_option) | |
.expect("Not a valid selection"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let costs: [(f32, f32, f32); 3] = [ | |
(807.50, 615.50, 367.40), | |
(519.40, 385.30, 243.60), | |
(497.00, 368.60, 233.10) | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct IndustrialConsumer { | |
pub peak: f32, | |
pub shoulder: f32, | |
pub off_peak: f32, | |
pub net_cost: f32, | |
pub cost_with_fee: f32, | |
pub taxes: f32, | |
pub total: f32, | |
} |