This file contains hidden or 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
const Layout = ({ children }) => { | |
useEffect(() => { | |
// set version | |
window.APP_VERSION = process.env.NEXT_PUBLIC_APP_VERSION; | |
}, []); | |
} | |
export default Layout; |
This file contains hidden or 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
Host devserve | |
User akid | |
HostName 12.120.104.101 | |
Port 41083 | |
ForwardAgent yes | |
LocalForward 8090 localhost:8000 |
This file contains hidden or 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
NEXT_PUBLIC_HELPSCOUT_BEACON_ID=9dc0a553-237e-5678-1234-09977d96ddf8 |
This file contains hidden or 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 React, { useState, useEffect } from "react"; | |
import Modal from "react-modal"; | |
import { getModalStyle } from "helpers/common_helper"; | |
export default function Home() { | |
const [modalIsOpen, setIsOpen] = useState(false); | |
// modal methods | |
function openModal() { |
This file contains hidden or 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
const nextConfig = { | |
trailingSlash: true, | |
images: { | |
loader: "akamai", | |
path: "", | |
}, | |
}; | |
module.exports = nextConfig; |
This file contains hidden or 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
cp -a /source/. /dest/ |
This file contains hidden or 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 React, { useState, useEffect } from "react"; | |
const GenerateCounter = ({ count, updateCount, ...restProps }) => { | |
const handleClick = (e) => { | |
let new_count = count + 1; | |
updateCount(new_count); | |
}; | |
return ( |
This file contains hidden or 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
<div id="apiusers_list" _="on htmx:beforeSwap call disposeTooltip() on htmx:afterSwap call handleTableDomUpdated()" | |
class="content-block overflow-hidden"> | |
{% include 'drafu/partial/_list_apiusers.html' %} | |
</div> | |
<div id="modal_container" _="on htmx:afterSwap call handleModalDomUpdated()"></div> | |
<form hx-post="{% url 'drafu:apiuser-list' %}" hx-target="#apiusers_list" | |
_="on htmx:responseError call swapBodyError()"> | |
This file contains hidden or 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
document.querySelector('.btn-create').addEventListener('click', function (e) { | |
getModalContent(e, this); | |
}); | |
// test | |
var edit_modal_btn_list = document.querySelectorAll('.btn-edit'); | |
edit_modal_btn_list.forEach(function (edit_btn, index) { | |
edit_btn.addEventListener('click', function (e) { |
This file contains hidden or 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
git rm --cached <file> |