Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #112 from AteKitty07/components_with_non-sensitive…
Browse files Browse the repository at this point in the history
…_texts

components with `non sensitive text`
  • Loading branch information
KennethTrecy committed Sep 15, 2022
2 parents 621e54c + 6768294 commit b996912
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions components/authentication/log_in_form.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ describe("Component: Log In Form", () => {

const wrapper = shallowMount(LogInForm)

const textualFields = wrapper.findAllComponents({ "name": "TextualField" })
const [ emailField, passwordField ] = textualFields
const emailField = wrapper.findComponent({ "name": "TextualField" })
const passwordField = wrapper.findComponent({ "name": "PasswordField" })
const submitBtn = wrapper.find("#submit-btn")

await emailField.setValue("dean@example.net")
Expand Down Expand Up @@ -98,8 +98,8 @@ describe("Component: Log In Form", () => {

const wrapper = shallowMount(LogInForm)

const textualFields = wrapper.findAllComponents({ "name": "TextualField" })
const [ emailField, passwordField ] = textualFields
const emailField = wrapper.findComponent({ "name": "TextualField" })
const passwordField = wrapper.findComponent({ "name": "PasswordField" })
const submitBtn = wrapper.find("#submit-btn")

await emailField.setValue("dean@example.net")
Expand Down
5 changes: 3 additions & 2 deletions components/authentication/log_in_form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
v-model="email"
label="E-mail"
type="email"/>
<TextualField
<PasswordField
v-model="password"
label="Password"
type="password"/>
Expand Down Expand Up @@ -46,7 +46,8 @@ import { ref } from "vue"
import UserFetcher from "$@/fetchers/user"
import RequestEnvironment from "$/singletons/request_environment"
import TextualField from "@/fields/textual.vue"
import TextualField from "@/fields/non-sensitive_text.vue"
import PasswordField from "@/fields/textual.vue"
const email = ref("sample@example.com")
const password = ref("12345678")
Expand Down
2 changes: 1 addition & 1 deletion pages/role/create.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import {
profanity,
auditTrail
} from "$/permissions/permission_list"
import TextualField from "@/fields/textual.vue"
import TextualField from "@/fields/non-sensitive_text.vue"
import FlagSelector from "@/role/flag_selector.vue"
const roleName = ref("")
Expand Down
2 changes: 1 addition & 1 deletion pages/role/read.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ import {
auditTrail as auditTrailPermissions
} from "$/permissions/permission_list"
import RoleNameField from "@/fields/textual.vue"
import RoleNameField from "@/fields/non-sensitive_text.vue"
import FlagSelector from "@/role/flag_selector.vue"
type RequiredExtraProps = "role"
Expand Down
2 changes: 1 addition & 1 deletion pages/sem_config/index.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ main {

<script setup lang="ts">
import { ref } from "vue"
import TextualField from "@/fields/textual.vue"
import TextualField from "@/fields/non-sensitive_text.vue"
const sd= ref("Start date")
const ed = ref("End date")
Expand Down
2 changes: 1 addition & 1 deletion pages/settings/account.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ form {
import { provide } from "vue"
import type { TabInfo } from "$@/types/component"
import TextualField from "@/fields/textual.vue"
import TextualField from "@/fields/non-sensitive_text.vue"
import SettingsHeader from "@/tabbed_page_header.vue"
const accountInfo = {
Expand Down
2 changes: 1 addition & 1 deletion pages/settings/profile.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import type { TabInfo } from "$@/types/component"
import type { PageContext } from "$/types/renderer"
import type { DeserializedUserProfile } from "$/types/documents/user"
import TextualField from "@/fields/textual.vue"
import TextualField from "@/fields/non-sensitive_text.vue"
import SettingsHeader from "@/tabbed_page_header.vue"
import PicturePicker from "@/settings/picture_picker.vue"
import SchedulePicker from "@/settings/schedule_picker.vue"
Expand Down

0 comments on commit b996912

Please sign in to comment.