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": { | |
"main": "src/js/script.js", | |
"es5": "assets/js/script.js", | |
"es6": "assets/js/script-esm.js", | |
"deps": "src/js/dependencies/**/*.js", | |
"modules": "src/js/modules/**/*.js", | |
"dest": "assets/js/" | |
}, | |
"style": { |
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
class AnchorScroll{ | |
constructor(link){ | |
this.link = link; | |
this.linkHref = this.link.getAttribute('href'); | |
this.target = document.querySelector(linkHref); | |
this.init(); | |
} | |
init(){ | |
link.addEventListener('click', (e) => { | |
e.preventDefault(); |
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 React from 'react'; | |
import ReactDOM from 'react-dom/client'; | |
import { RouterProvider } from 'react-router-dom'; | |
import router from './router'; | |
function App() { | |
return ( | |
<React.StrictMode> | |
<RouterProvider router={router} /> | |
</React.StrictMode> |
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
export default class Airtable { | |
constructor(token, base) { | |
this.token = token; | |
this.base = base; | |
this.baseUrl = 'https://api.airtable.com/v0'; | |
this.tables = []; | |
this.tmp = []; | |
} | |
async get(table) { |