View novuConfig.js
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
import { | |
NotificationBell, | |
NovuProvider, | |
PopoverNotificationCenter, | |
} from "@novu/notification-center"; | |
import { novuSubscriberId } from "@/utils/novuSubscriberId"; | |
const appIdentified = | |
process.env.NODE_ENV === "development" |
View script_include.js
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
var Conviva_WorkflowUtils = Class.create(); | |
Conviva_WorkflowUtils.prototype = Object.extendsObject(AbstractAjaxProcessor, { | |
description: function (item) { | |
switch (item) { | |
// Conviva Payer Portal | |
case "45546e4887a674105a6cc9d6cebb35f4": | |
return "Review request and validate the requestors role is appropriate for access."; | |
// Conviva Collaboration | |
case "f602368c87e674105a6cc9d6cebb35e6": |
View decom_server.js
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
var queryString = "task=" + current.sys_id; | |
var grTaskService = new GlideRecord("task_cmdb_ci_service"); | |
grTaskService.addEncodedQuery(queryString); | |
var isValidQuery = grTaskService.isEncodedQueryValid(queryString); | |
var CIstoRetire = []; | |
if (isValidQuery) { | |
grTaskService.query(); | |
while (grTaskService.next()) { | |
CIstoRetire.push(grTaskService.cmdb_ci_service.toString()); |
View script.js
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
// services categories for the applications that live in the cmdb_ci_services table | |
var categories = [ | |
{ | |
id: 0, | |
name: "Access Request", | |
}, | |
{ | |
id: 1, | |
name: "New Database Request", | |
}, |
View useReducer.js
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
import { scheduleSteps } from '@/utils/scheduleSteps' | |
import { useReducer } from 'react' | |
const createSchedule = () => scheduleSteps | |
const reducer = (state, action) => { | |
const { type, data } = action | |
switch (type) { | |
case 1: { |
View gist:c4716444871e8b3b064e1262752d3003
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
import { useMemo, useState } from "react"; | |
import { chatFetchers } from "../../utils/chatFetchers"; | |
import { selectedConversation } from "../../components/shared/selectedConversation"; | |
import { useAddSMSParticipant } from "./useAddSMSParticipant"; | |
import { useCreateAccessToken } from "./useCreateAccessToken"; | |
import { useCreateConversation } from "./useCreateConversation"; | |
import { useDeliveryReceipt } from "./useDeliveryReceipt"; | |
import { useInitializeConversationClient } from "./useInitializeConversationClient"; | |
import { useJoinAndLeaveConversations } from "./useJoinAndLeaveConversations"; |
View gist:c100cb1e6eec39f0e0f7b38c6b2b81f8
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
import { useEffect, useState } from "react"; | |
export const useSendAndReceiveMessages = (selectedConversation) => { | |
const [conversationMessage, setConversationMessage] = useState({ | |
newMessage: ``, | |
messages: [], | |
conversationProxy: null, | |
loadingState: `initializing`, | |
}); |
View fetchManyThings.js
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
useEffect(() => { | |
if (userInfo.requestConversation) { | |
if (userInfo.sid) { | |
setCreateOrGetConversation((oldData) => { | |
return { | |
...oldData, | |
selectedConversationSid: userInfo.sid, | |
}; | |
}); |
View useForgotPassword.js
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
import { getAuth, sendPasswordResetEmail } from "firebase/auth"; | |
import { useEffect, useState } from "react"; | |
import { app } from "../../utils/firebaseConfig"; | |
import { navigate } from "gatsby"; | |
import { validEmailRegex } from "./validateEmailHelper"; | |
const auth = getAuth(app); | |
auth.languageCode = `es`; |
View forgotPasswordForm.test.js
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
import { render, screen } from "@testing-library/react"; | |
import { ForgotPasswordForm } from "../authentication/forgotPasswordForm"; | |
import React from "react"; | |
import userEvent from "@testing-library/user-event"; | |
jest.mock(`gatsby-plugin-image`, () => { | |
const React = require(`react`); | |
const plugin = jest.requireActual(`gatsby-plugin-image`); |
NewerOlder