41 matches across 4 files for func main lang:JavaScript
snippet_mode: auto · sorted by relevance
5var STORAGE_KEY = 'todos-vuejs-2.0'
6var todoStorage = {
7▶ fetch: function () {
8 var todos = JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]')
9 todos.forEach(function (todo, index) {
· · ·
9▶ todos.forEach(function (todo, index) {
10 todo.id = index
11 })
· · ·
13 return todos
14 },
15▶ save: function (todos) {
16 localStorage.setItem(STORAGE_KEY, JSON.stringify(todos))
17 }
· · ·
20// visibility filters
21var filters = {
22▶ all: function (todos) {
23 return todos
24 },
· · ·
25▶ active: function (todos) {
26 return todos.filter(function (todo) {
27 return !todo.completed
+ 19 more matches in this file
34const step = msg => console.log(chalk.cyan(msg))
35
36▶async function main() {
37 let targetVersion = args._[0]
38
· · ·
132}
133
134▶function updatePackage(pkgRoot, version) {
135 const pkgPath = path.resolve(pkgRoot, 'package.json')
136 const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
· · ·
144 : path.resolve(__dirname, '../packages/' + pkg)
145
146▶async function publishPackage(pkgName, version, runIfNotDry) {
147 const pkgRoot = getPkgRoot(pkgName)
148 const pkgPath = path.resolve(pkgRoot, 'package.json')
· · ·
4var config = {
5 apiKey: "AIzaSyAi_yuJciPXLFr_PYPeU3eTvtXf8jbJ8zw",
6▶ authDomain: "vue-demo-537e6.firebaseapp.com",
7 databaseURL: "https://vue-demo-537e6.firebaseio.com"
8}
· · ·
29 // computed property for form validation state
30 computed: {
31▶ validation: function () {
32 return {
33 name: !!this.newUser.name.trim(),
· · ·
35 }
36 },
37▶ isValid: function () {
38 var validation = this.validation
39 return Object.keys(validation).every(function (key) {
· · ·
39▶ return Object.keys(validation).every(function (key) {
40 return validation[key]
41 })
· · ·
44 // methods
45 methods: {
46▶ addUser: function () {
47 if (this.isValid) {
48 usersRef.push(this.newUser)
+ 1 more matches in this file
9
10 data: {
11▶ branches: ['main', 'dev'],
12 currentBranch: 'main',
13 commits: null
· · ·
12▶ currentBranch: 'main',
13 commits: null
14 },
· · ·
15
16▶ created: function () {
17 this.fetchData()
18 },
· · ·
23
24 filters: {
25▶ truncate: function (v) {
26 var newline = v.indexOf('\n')
27 return newline > 0 ? v.slice(0, newline) : v
· · ·
28 },
29▶ formatDate: function (v) {
30 return v.replace(/T|Z/g, ' ')
31 }
+ 2 more matches in this file
Search syntax
auth login | both terms (AND is implicit) |
auth OR login | either term |
NOT path:vendor | exclude matches |
"exact phrase" | quoted exact match |
/func\s+Test/ | regex |
handler~1 | fuzzy (Levenshtein 1) |
file:*_test.go | filename glob |
path:pkg/auth/** | full path glob |
lang:go | language filter |
Search any public repo from your terminal
This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.