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
fields.forEach((field) => { | |
function validateField () { | |
var isInvalid = $('.is-invalid').length | |
console.log(isInvalid); | |
if (field.element.val() != '' || field.element.val() != false ) { | |
field.element.addClass('is-valid'); | |
if (isInvalid == 0) { | |
$('.reg-button').removeClass('disabled'); | |
} |
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
import React, { Component } from 'react'; | |
import { View, Dimensions, FlatList } from 'react-native'; | |
import { withNavigation } from 'react-navigation'; | |
import { connect } from 'react-redux'; | |
import { EventLine } from '../Styles/styles'; | |
import Event from './Event'; | |
import generateEvent from './generateEvent'; | |
const { height, width } = Dimensions; |
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
// Native | |
const { format } = require('url') | |
const { join, parse } = require('path') | |
// Packages | |
const isDev = require('electron-is-dev') | |
const { resolve } = require('app-root-path') | |
const { protocol } = require('electron') | |
const adjustProtocol = directory => { |
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
.header { | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; | |
z-index: 99; | |
&_hidden { | |
transform: translateY(-100%); | |
} |
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
require('dotenv').config(); | |
const { app, BrowserWindow } = require('electron'); | |
const { setWindowURL } = require('neutron'); | |
const Sequelize = require('sequelize'); | |
app.on('ready', () => { | |
const introWindow = new BrowserWindow({ | |
width: 1200, |
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
import * as React from 'react'; | |
import styled, { css } from 'styled-components'; | |
import PropTypes from 'prop-types'; | |
const Wrapper = styled.svg` | |
display: inline-block; | |
vertical-align: top; | |
fill: currentColor; |
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
let textView = NSTextView() | |
let string = (data?.text)! | |
let paragraphStyle = NSMutableParagraphStyle() | |
paragraphStyle.lineSpacing = 1.3 | |
paragraphStyle.lineBreakMode = .byTruncatingTail | |
let attributedString = NSMutableAttributedString(string: string) | |
attributedString.setAttributes( |
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
import Cocoa | |
import PureLayout | |
class Card: NSCollectionViewItem { | |
let labelView = NSTextView() | |
let linkView = NSTextView() | |
let textView = NSTextView() | |
var data: (type: String, label: String?, text: String, link: String?, tags: [String])? | |
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
import Cocoa | |
import PureLayout | |
class ViewController: NSViewController { | |
let searchView = NSView() | |
let search = NSTextField() | |
var searchingString: String? | |
// let cardListScrollView = NSScrollView() | |
let cardList = NSCollectionView() |