// Import the functions you need from the SDKs you need import { initializeApp } from"firebase/app"; import { getAnalytics } from"firebase/analytics"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional const firebaseConfig = { apiKey: "A****************", authDomain: "******.firebaseapp.com", projectId: "******", storageBucket: "******.appspot.com", messagingSenderId: "******", appId: "1:******:web:******", measurementId: "G-*********", };
// If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals();
// If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals();
// If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals(); });
//return value functionfoo1(a, b) { return a + b; } // arrow function letfoo2 = (a, b) => { return a + b; }; // skip { } and return letfoo3 = (a, b) => a + b;
functionfoo4(a, b) { return { sum: a + b }; } // arrow function letfoo5 = (a, b) => { return { sum: a + b }; }; // add () so you can skip { } and return letfoo6 = (a, b) => ({ sum: a + b });
docker run --rm -it -v gitlab-runner-config:/etc/gitlab-runner \ gitlab/gitlab-runner:latest register
Enter your GitLab instance URL (also known as the gitlab-ci coordinator URL).
Enter the token you obtained to register the runner.
Enter a description for the runner. You can change this value later in the GitLab user interface.
Enter the tags associated with the runner, separated by commas. You can change this value later in the GitLab user interface.
Provide the runner executor. For most use cases, enter docker.
If you entered docker as your executor, you’ll be asked for the default image to be used for projects that do not define one in .gitlab-ci.yml. GitLab instance URL 是 https://gitlab.com/ 你可以在專案中的 Settings > CI/CD 找到 token, description 會顯示在 Runner List 中,可以用易懂的描述, tags 可以更多的參考這本篇文章設定 executor 選用 docker 記得需要安裝 docker daemon executor 為 docker 時,需要註明預設的 image,我是選用 docker:stable
i18n .use(initReactI18next) // passes i18n down to react-i18next .init({ resources: resources, lng: "en", // if you're using a language detector, do not define the lng option fallbackLng: "en", interpolation: { escapeValue: false, // react already safes from xss => https://www.i18next.com/translation-function/interpolation#unescape }, });