See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| import os from 'node:os' | |
| function getIPAdress() { | |
| let localIPAddress = '' | |
| const interfaces = os.networkInterfaces() | |
| for (const devName in interfaces) { | |
| const iface = interfaces[devName] as os.NetworkInterfaceInfo[] | |
| for (let i = 0; i < iface.length; i++) { | |
| const alias = iface[i] | |
| if ( |
| name: Main | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| { | |
| type: 'FeatureCollection', | |
| features: [ | |
| { | |
| type: 'Feature', | |
| properties: { | |
| asdas: 'asdas', | |
| }, | |
| geometry: { | |
| type: 'Polygon', |
| import { Client, createClient, dedupExchange, errorExchange, fetchExchange, ssrExchange } from '@urql/core' | |
| import { ref } from 'vue' | |
| import { devtoolsExchange } from '@urql/devtools' | |
| import * as Session from 'supertokens-web-js/recipe/session' | |
| import { authExchange } from '@urql/exchange-auth' | |
| import { defineNuxtPlugin } from '#app' | |
| const ssrKey = '__URQL_DATA__' | |
| export default defineNuxtPlugin((nuxtApp) => { |
| -- Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/ | |
| create or replace function uuid_generate_v7() | |
| returns uuid | |
| as $$ | |
| begin | |
| -- use random v4 uuid as starting point (which has the same variant we need) | |
| -- then overlay timestamp | |
| -- then set version 7 by flipping the 2 and 1 bit in the version 4 string | |
| return encode( |
| import { animate } from 'motion' | |
| import type { AnimationPlaybackControls, ValueAnimationOptions } from 'motion/react' | |
| import { | |
| type VNode, | |
| computed, | |
| defineComponent, | |
| h, | |
| mergeProps, | |
| reactive, | |
| useAttrs, |
| // #1 | |
| function logWrapper(fn: Function) { | |
| return function (...args: any[]) { | |
| console.log(`Calling function with args: ${args}`); | |
| return fn(...args); | |
| }; | |
| } |