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
<?php | |
namespace App\Observers; | |
use DOMDocument; | |
use Spatie\Crawler\CrawlObservers\CrawlObserver; | |
use Psr\Http\Message\UriInterface; | |
use Psr\Http\Message\ResponseInterface; | |
use GuzzleHttp\Exception\RequestException; | |
use Illuminate\Support\Facades\Log; |
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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Observers\CustomCrawlerObserver; | |
use Spatie\Crawler\CrawlProfiles\CrawlInternalUrls; | |
use Spatie\Crawler\Crawler; | |
use App\Http\Controllers\Controller; | |
use GuzzleHttp\RequestOptions; |
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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\DataTables\UserDataTable; | |
use App\DataTables\NoticeDataTable; | |
use Response; | |
class DashboardController extends Controller |
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
<?php | |
namespace App\DataTables; | |
use App\Models\User; | |
use Yajra\DataTables\Html\Button; | |
use Yajra\DataTables\Html\Column; | |
use Yajra\DataTables\Html\Editor\Editor; | |
use Yajra\DataTables\Html\Editor\Fields; | |
use Yajra\DataTables\Services\DataTable; |
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
<?php | |
namespace App\DataTables; | |
use App\Models\Notice; | |
use Yajra\DataTables\Html\Button; | |
use Yajra\DataTables\Html\Column; | |
use Yajra\DataTables\Html\Editor\Editor; | |
use Yajra\DataTables\Html\Editor\Fields; | |
use Yajra\DataTables\Services\DataTable; |
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 * as Mui from "@mui/material"; | |
const Jitsi = ({ uuid }) => { | |
const containerId = "react-jitsi-meet-container"; | |
const [jitsiObj, setJitsiObj] = React.useState({}); | |
const loadScript = () => { | |
let resolveloadScriptPromise = null; |
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 i18n from "i18next"; | |
import { initReactI18next } from "react-i18next"; | |
import HttpApi from "i18next-http-backend"; | |
import LanguageDetector from "i18next-browser-languagedetector"; | |
const fallbackLng = ["en"]; | |
const availableLanguages = ["en", "no"]; | |
i18n | |
.use(HttpApi) // load translations using http (default public/locals/en/translations) |
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"; | |
import App from "./App"; | |
import reportWebVitals from "./reportWebVitals"; | |
import CssBaseline from "@mui/material/CssBaseline"; | |
import { ThemeProvider } from "@mui/material/styles"; | |
import theme from "./configs/theme"; | |
import "./assets/scss/main.scss"; | |
import "./i18n"; |
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 * as Mui from "@mui/material"; | |
import { useTranslation } from "react-i18next"; | |
import en from "./assets/images/en.svg"; | |
import no from "./assets/images/no.svg"; | |
function App() { | |
const { i18n, t } = useTranslation(); | |
const setLocale = (lng) => { |
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
const { GoogleSpreadsheet } = require("google-spreadsheet"); | |
const secret = require("./secret.json"); | |
const fs = require("fs"); | |
//# Initialize the sheet | |
const doc = new GoogleSpreadsheet( | |
"1B1njd441X7di47joj9OvQGuJZ-mR9yFQrpr0WNW6c94" | |
); //# spreadsheet ID |
OlderNewer