pamac remove -o
@source https://stackoverflow.com/questions/7600173/specify-csss-for-webkit-ie-without-separate-css
.htaccess
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla" USER_AGENT=firefox
BrowserMatch "Safari" USER_AGENT=safari
BrowserMatch "Chrome" USER_AGENT=chrome
BrowserMatch "MSIE" USER_AGENT=ie
в обсидиан пока
import { mount } from "@vue/test-utils"
import { describe, expect, test, it } from 'vitest'
import InputSelect from './input-select.vue'
describe('InputSelect', () => {
it('renders properly', async () => {
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
| /** | |
| * Проверка номера телефона на валидность по маске "+7 (111) 111-11-11" | |
| * | |
| * @version 20240517 | |
| */ | |
| export default function checkPhoneIsValid(phone: string) { | |
| if (!phone) | |
| return false | |
| else { | |
| var regexPhone = (/^((8|\+7)[\-]?)(\(?\d{3}\)?[\-]?)\d{3}[\-]?\d{2}[\-]?\d{2}$/) |
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
| /** | |
| * @author Artem Kuzencov | |
| * @source https://gist.github.com/artemsites/8f2c2a0ce37c203b4d9b0d164d244f31 | |
| * @version 1.0 | 13.03.2024 | |
| */ | |
| export default function isViewportWidthLessThen(width: number): boolean { | |
| if (window.innerWidth < width) return true | |
| return false | |
| } |
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
| /** | |
| @example | |
| import OrderAppOld from '../components/form-order.vue' | |
| import OrderAppNew from '../components/form-order-202403.vue' | |
| const abTestName = 'ab-form-order' | |
| initABTest(abTestName) | |
| let OrderApp | |
| if (getABVariant(abTestName)==='0') { |