added codebase, project rules and sec audit

This commit is contained in:
2026-11-08 19:03:59 -05:00
parent 4816038d49
commit bcd424f91a
1798 changed files with 801283 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import GetStakeholders from "/src/js/components/organisations/GetStakeholders.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ParentModules.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(GetStakeholders, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ListOrganisations from "/src/js/components/organisations/ListOrganisations.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ParentModules.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(ListOrganisations, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import NewOrganisation from "/src/js/components/organisations/NewOrganisation.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ParentModules.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(NewOrganisation, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})

View File

@@ -0,0 +1,30 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import OrganisationInformation from "/src/js/components/organisations/OrganisationInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ParentModules.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(OrganisationInformation, {
props: {
organisationResults: [{"model":"NearBeach.organisation","pk":1,"fields":{"organisation_name":"NearBeach Incorporate","organisation_website":"https://nearbeach.org","organisation_email":"support@nearbeach.org","organisation_profile_picture":null,"date_created":"2023-02-15T08:56:40.669Z","date_modified":"2023-02-15T08:56:40.669Z","change_user":1,"is_deleted":false}}],
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import OrganisationModules from "/src/js/components/organisations/OrganisationModules.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ParentModules.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(OrganisationModules, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})

View File

@@ -0,0 +1,30 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import StakeholderInformation from "/src/js/components/organisations/StakeholderInformation.vue";
// VueX
import { store } from "/src/js/vuex-store";
// Axios
const axios = require("axios");
describe(' ParentModules.vue - rendering component', () => {
//Using mount - insert data
const wrapper = mount(StakeholderInformation, {
props: {
organisationResults:[{"model":"NearBeach.organisation","pk":1,"fields":{"organisation_name":"NearBeach Incorporate","organisation_website":"https://nearbeach.org","organisation_email":"support@nearbeach.org","organisation_profile_picture":null,"date_created":"2023-02-15T08:56:40.669Z","date_modified":"2023-02-15T08:56:40.669Z","change_user":1,"is_deleted":false}}],
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})