Next version of massCode [WIP]. A free and open source code snippets manager for developers

Overview

massCode next

Built with Electron, Vue 3 & Ace Editor.
Inspired by applications like SnippetsLab and Quiver.

☝️ massCode is currently in development, and there is no build to download yet. I started from scratch.

massCode v1 is available for download.

Supporting

The best support right now is your star for the project.

Feature for now

  • Support M1
  • Syntax highlighting over 170 languages
  • API to fetch snippets on the localhost

Overview

The goal of creating this application was mostly my own growth as a developer. Also, I wanted this project to absorb the best of such applications already on the market (both free and paid). At the same time, I wanted this project to be an open source project.

massCode allows you to organize snippets using multi-level folders as well as tags. Each snippet has fragments - tabs, which gives even greater level of organization.

Comments
  • feat(i18n): add Simplified Chinese for i18n

    feat(i18n): add Simplified Chinese for i18n

    Added Simplified Chinese support, using two-letter locale code according to README.md. However, it should be noted that this will result in Traditional Chinese and even various regions of Simplified Chinese and Traditional Chinese not being represented. My suggestion is to use zh_CN and zh_TW and so on with regional abbreviations after the two-letter locale code to distinguish them.

    opened by AuroraTea 16
  • [Bug]: massCode no longer opens (Uncaught Exception error)

    [Bug]: massCode no longer opens (Uncaught Exception error)

    Describe the bug

    Hi there,

    I had massCode setup with google drive (so that I could sync its json database across any machine).

    Somewhere along the line the application would refuse to open and would display an error message (see screenshot for details).

    My best guess is that google drives volume label may have changed at some point (potentially causing the error). Or there is some permissions issue.

    I have tried uninstalling and reinstalling, but the same error message persists and I am unable to open the application.

    2022-05-10 10_12_05

    Screenshot 2022-07-13 at 2 09 29 pm

    To reproduce

    1. Go to ...
    2. Click on ...
    3. Scroll down to ..
    4. See error

    Version

    2.9.0

    OS

    Windows 8, Windows 10, MacOS Monterey 12.4

    Validations

    pending triage 
    opened by HANZ64 10
  • [Bug]: Cannot create a new snippet

    [Bug]: Cannot create a new snippet

    Describe the bug

    Cannot create a new snippet on a fresh install This is on a 14" Macbook Pro (Apple Silicon), and I have installed the arm version of the app.

    To reproduce

    Press the "+" icon on the top (next to search), or do a Cmd + N Nothing happens

    I have tried to uninstall, delete the storage, and re-install. No luck.

    Version

    2.2.0

    OS

    macOS Monterey 12.3

    Validations

    need reproduction 
    opened by manurana 10
  • [Bug]: Search Not Working

    [Bug]: Search Not Working

    Describe the bug

    Search does not after upgrading to 2.1.0.

    To reproduce

    1. Enter anything into search

    Version

    2.1.0

    OS

    macOS

    Validations

    need reproduction 
    opened by jonchen727 10
  • Added New Translation

    Added New Translation

    Localization and some word tweaks (adaptation) for my language, Brazilian Portugue hope it be usefull. I hope I did not missed anything else this time :)

    Note: There is a typo in the original language 'File preferences.json' line: "showInvisibles": "Snow Invisibles" should be Show not Snow.

    opened by andercard0 8
  • [Bug]: Won't install on Debian. No instructions provided.

    [Bug]: Won't install on Debian. No instructions provided.

    Describe the bug

    Installation returns error: cannot find signatures with metadata for snap "masscode_2.6.1_amd64.snap". Apparently not the only one seeing this issue: https://itsfoss.com/snap-metadata-signature-error/

    Looks like it might be a great application, but should install properly with apt. Don't have time to troubleshoot.

    To reproduce

    1. Download the distribution file
    2. Attempt to install via "snap"
    3. Get error

    Version

    2.6.1

    OS

    Debian 10

    Validations

    pending triage 
    opened by gnickoloff 8
  • [Bug]: No Snippets are shown, and no Folders can be created

    [Bug]: No Snippets are shown, and no Folders can be created

    Describe the bug

    Freshly installed 2.5.0 version, two major issues:

    1. Open MassCode, no pre-existing snippets are shown (heart-attack follows). You must add a Snippet, and only then old ones show.
    2. It's impossible to create Folders, either from the + button in the UI or the File menu.

    To reproduce

    See:

    https://user-images.githubusercontent.com/5939127/167042027-f9136d29-a541-4713-9105-f51278ff6f2b.mp4

    Version

    2.5.0

    OS

    macOS Monterey 12.3.1 - M1 Max

    Validations

    need reproduction 
    opened by undavide 8
  • [Bug]: Doesn't load old snippets from v2.0.0-beta.1 to v2.1.1

    [Bug]: Doesn't load old snippets from v2.0.0-beta.1 to v2.1.1

    Describe the bug

    After Updating to version 2.1.1 from v2.0.0-beta.1, using the open storage I open the folder I have backed up and have my db.json. It just shows the titles of snippets. Then restarted my MassCode, but MassCode was empty.

    I have tried to change the address of folder to another folder and then open it. It shows the numbers of my snippets, but then I close the preferences. Again, MassCode was empty.

    I have tried other version of MassCode, but I had the same problem.

    How to reproduce it

    1. Fresh installation of the app
    2. Opening the preference then storage
    3. Open Storage and selecting the folder containing the db.json
    4. Closing the preference
    5. App shows the list of Snippets, but the snippets are empty, just the titles
    6. Restarting the app
    7. The MassCode is empty

    ezgif-4-e13933686a

    Version

    8.1.1

    OS

    macOS 12.3.1

    Validations

    need reproduction 
    opened by dsaad68 8
  • [Bug]: Editor broken

    [Bug]: Editor broken

    Describe the bug

    image

    The position marker does not match the visible line and that makes it incredibly hard to edit a snippet. E.g. : in the photo the marker points to the first char of the line and not to the character visually pointed (between 6 and 0)

    To reproduce

    Edit a snippet and go to the end of the line: it will appear way beyond the last characteer

    Version

    2.9.0

    OS

    Ubuntu

    Validations

    linux 
    opened by andrea-citterio 7
  • [Bug]: Pixelated UI

    [Bug]: Pixelated UI

    Describe the bug

    The application itself looks very pixelated but the pixelation goes away if I click on the menu items pixelated UI

    pixelated UI

    To reproduce

    Just open the application

    Version

    2.8.1

    OS

    Windows 11

    Validations

    help wanted need reproduction windows 
    opened by kaijuh 7
  • [Bug]: Data set is reset after updating software via .exe resulting in data loss

    [Bug]: Data set is reset after updating software via .exe resulting in data loss

    Describe the bug

    Data set is reset after updating software via .exe resulting in data loss. image

    To reproduce

    1. Go to ...
    2. Click on ...
    3. Scroll down to ..
    4. See error

    Version

    3.4.0

    OS

    windwos 10

    Validations

    need reproduction 
    opened by chaoyu1999 6
  • [Bug]: Empty parts of Menu in Ubuntu 22.04

    [Bug]: Empty parts of Menu in Ubuntu 22.04

    Describe the bug

    Hi, I have just installed massCode in Ubuntu 22.04 and I get an error with the menu. Several options of the menu are completely empty ( empty).

    I installed it several times with the --dangerous option (with and without it) and always the same error.

    An image with the error is here.

    I updated my system with many new libraries for Electron, just in case. And also updated some libraries following this.

    Thanks, Carlos.

    To reproduce

    1. Go to ...
    2. Click on ...
    3. Scroll down to ..
    4. See error

    Version

    masscode_3.4.1_amd64

    OS

    Ubuntu 22.04

    Validations

    pending triage 
    opened by coforfe 0
  • [Bug]:

    [Bug]: "A JavaScript error occurred in the main process" when Google Drive updated location

    Describe the bug

    While using the official macOS Google Drive app (as the storage of the snippet db), Google changed / moved the location of their directories, however, opening massCode doesn't allow for a change of location and user is kept in a error loop upon startup (not recoverable - clicking "Ok" does nothing, user is required to 'force quit' app). image

    Exception: Uncaught Exception: Error: EACCES: permission denied, mkdir '/Volumes/GoogleDrive/My Drive/Apps/massCode' at Object.mkdirSync (node:fs:1334:3) at Object.module.exports.makeDirSync (/Applications/massCode.app/Contents/Resources/app.asar/node_modules/fs-extra/lib/mkdirs/make-dir.js:23:13) at Object.createFileSync (/Applications/massCode.app/Contents/Resources/app.asar/node_modules/fs-extra/lib/ensure/file.js:59:45) at createDb (/Applications/massCode.app/Contents/Resources/app.asar/src/main/services/db/

    To reproduce

    1. Store db.json on a folder in Google Drive
    2. Open it's location with masscode (eg: /Apps/massCode/db.json) (location was actually: /Volumes/GoogleDrive/My Drive/Apps/massCode). Alternatively, can use a temporary USB drive location.
    3. Google updated the drive location to (/Users//My Drive/Apps/massCode)
    4. Previous location were unavailable, and the error above was displayed.
    5. Removing the App and reinstalling it did not solve the issue
    6. I had to manually 'rm -rf' the local persistence directory at (./Library/Application Support/massCode) in order to fix this.
    7. An improved error dialog should be displayed, perhaps with the option to "open storage" elsewhere

    Version

    v3.4.1

    OS

    macOS Monterey 12.6

    Validations

    pending triage 
    opened by rogerioth 1
  • [Bug]: Duplicate snippet bug

    [Bug]: Duplicate snippet bug

    Describe the bug

    When duplicate an item if i edit removing content of the duplicated snippet it will return. more detailed in the git below.

    2

    To reproduce

    Steps:

    • Right click > duplicate
    • Select all contents of the duplicated snippet > delete
    • Go to the original item then go back to the duplicated one, content will reutrn.

    Version

    3.4.1

    OS

    Windows 10 - 21h2

    Validations

    pending triage 
    opened by andercard0 3
  • [Bug]: Preview Code bug

    [Bug]: Preview Code bug

    Describe the bug

    Preview Code Issue

    As you might see in the gif below soon as I click in preview mode while hovering mouse over the option, screen starts to blink out of nowhere. Need to click real quick to make it back to normal mode.

    192883612-ec6af1eb-ace7-4054-84d1-208e10332660

    To reproduce

    Preview code

    • Click in preview mode
    • Hover the mouse pointer screen starts to blink

    Version

    3.4.1

    OS

    Windows 10 - 21h2

    Validations

    pending triage 
    opened by andercard0 2
  • fix: #167 Right-click menu blinking and Folder name overflow, Window …

    fix: #167 Right-click menu blinking and Folder name overflow, Window …

    What kind of change does this PR introduce?

    check at least one

    • [x] Bugfix fix: #167 Right-click menu blinking
    • [ ] Feature
    • [x] Refactor fix Folder name overflow , Window Max Min Setting
    • [ ] Other, please describe:

    Validations

    opened by oorzc 2
  • [Bug]: Snippets not showing stored to Google Drive

    [Bug]: Snippets not showing stored to Google Drive

    Describe the bug

    When I open massCode there is only the empty default folder. I've looked on GoogleDrive and the db.json file is there and appears to contain my snippets.

    I've seen this issue a while back running locally, but it had to do with some backup.db folder/file or something-or-other in the storage directory being saved, deleted and pasted back with rename. Can't remember exactly.

    I can confirm that the db.json file contains the snippets, here's the first part of the file:

    {
      "folders": [
        {
          "id": "Aohk4j-d",
          "name": "Default",
          "defaultLanguage": "typescript",
          "parentId": null,
          "isOpen": false,
          "isSystem": false,
          "createdAt": 1657686236199,
          "updatedAt": 1657686236199
        },
        {
          "name": "Default Starters",
          "parentId": null,
          "isOpen": false,
          "isSystem": false,
          "defaultLanguage": "plain_text",
          "id": "mzkIGdBN",
          "createdAt": 1658721647755,
          "updatedAt": 1658721674180
        },
        {
          "name": "React",
          "parentId": null,
          "isOpen": false,
          "isSystem": false,
          "defaultLanguage": "plain_text",
          "id": "wYkgo1v0",
          "createdAt": 1659100654501,
          "updatedAt": 1659100670449
        },
        {
          "name": "TypeScript",
          "parentId": null,
          "isOpen": false,
          "isSystem": false,
          "defaultLanguage": "typescript",
          "id": "5WmisoU6",
          "createdAt": 1661476268571,
          "updatedAt": 1661476285911
        },
        {
          "name": "Storybook-TS",
          "parentId": null,
          "isOpen": false,
          "isSystem": false,
          "defaultLanguage": "typescript",
          "id": "zVAFCEK9",
          "createdAt": 1661490808162,
          "updatedAt": 1661490834640
        }
      ],
      "snippets": [
        {
          "isDeleted": false,
          "isFavorites": false,
          "folderId": "mzkIGdBN",
          "tagsIds": [],
          "description": null,
          "name": "Basic Arrow Function",
          "content": [
            {
    ...
    
    image

    To reproduce

    1. Open massCode ...
    2. look for snippets ...
    3. See no snippets ...

    SYSTEM INFO: massCode: 3.4.1 Electron: 16.2.3 Chrome: 96.0.4664.174 Node.js: 16.9.1 V8: 9.6.180.23-electron.0 OS: Darwin arm64 21.6.0

    Version

    3.4.1

    OS

    12.5.1

    Validations

    pending triage 
    opened by bencodesall 1
Releases(v3.5.0)
Owner
A free and open source code snippets manager for developers.
null
Vue.js version of Moai. Official WIP.

Moai Vue UI Kit ?? A Vue component library, where buttons look like buttons. Website: vue.moaijs.com Document: docs.vue.moaijs.com Install The [@moai-

Moai UI Kit 10 Nov 24, 2022
Open-source list of data visualization tools for software developers 📊📈

awesome.cube.dev — charts, data grids, maps, etc. Choose the best tool for your needs by type, framework, language, or license. Get started in an inst

Cube.js 72 Jan 1, 2023
100 Modern CSS Buttons, Free And Royalty Free.

?? Contributions Currently, there are 100 buttons in this project, but we’d love to have more! If you have new button ideas, create an Issue. If you h

null 2.7k Jan 7, 2023
(WIP) Universal PWA Builder

WORK IN PROGRESS Features Framework Agnostic Build with your preferred framework or with none at all! Official presets for Preact, React, Vue, and Sve

Luke Edwards 3.1k Dec 29, 2022
[WIP] Firebase Integration for Nuxt(3)

Nuxt Firebase Integrate Firebase with Nuxt (3) This module is not ready for production use. Install # npm npm install -D firebase @e-chan1007/nuxt-fir

e-chan1007 5 Dec 8, 2022
We open the tools we use in our projects to all developers.

huntersofbook This repo was created with the aim of developing the vue ecosystem as well as giving back to the open-source world what we learned from

huntersofbook 76 Dec 27, 2022
The state manager ☄️

☄️ effector The state manager Table of Contents Introduction Effector follows five basic principles: Installation Documentation Packages Articles Comm

effector ☄️ 4.1k Jan 9, 2023
Presentation and materials for The Graph developers taking their first space-walk 🧑‍🚀

Welcome to thegraph-hacker-kit ?? Presentation and materials for The Graph developers taking their first space-walk ??‍?? Are you ready to learn how t

Patrick Gallagher 20 Aug 26, 2022
OSI helps you to track your all open-source Internships and Program in a single place ⚡

Open Source Internships Overview ?? Dark Theme Light Theme Run locally ?? Fork this repo. open-source-internships ?? Clone the repo. ⏬ git clone https

Rohan kumar 39 Jan 2, 2023
Clarity is a scalable, accessible, customizable, open-source design system built with web components.

Clarity is an open source design system that brings together UX guidelines, design resources, and coding implementations with Web Components

VMware Clarity 90 Dec 30, 2022
jump to local IDE source code while click the element of browser automatically.

?? Introduction A vite plugin which provides the ability that to jump to the local IDE when you click the element of browser automatically. It support

webfansplz 413 Dec 30, 2022
Obsidian plugin to add keyboard shortcuts commonly found in code editors such as Visual Studio Code or Sublime Text

Code Editor Shortcuts This Obsidian plugin adds keyboard shortcuts (hotkeys) commonly found in code editors such as Visual Studio Code or Sublime Text

Tim Hor 143 Dec 30, 2022
Free and Beautiful Vue.js Admin Template

We’re working on Vuestic UI component library, which lets you easily customize components to your own design. Get early access and receive support fro

Epicmax 9.1k Jan 4, 2023
Next generation frontend tooling. It's fast!

Vite ⚡ Next Generation Frontend Tooling ?? Instant Server Start ⚡️ Lightning Fast HMR ??️ Rich Features ?? Optimized Build ?? Universal Plugin Interfa

vite 51.2k Jan 5, 2023
Based on vitawind, kowind brings ESLint plugin and some other plugins to it that help you to format your code quickly and efficiently.

?? KOWIND v3 ?? Vite helper based on vitawind ?? Easy To Install ⚡️ Automatically open Tailwind JIT Mode ⚙ One-Command Setting ?? Automatically config

Kayo Oliveira 13 Nov 26, 2022
Morse code is a method used in telecommunication to encode text characters as standardized sequences of two different signal durations, called dots and dashes, or dits and dahs.

@elonehoo/point-line Install # npm npm i @elonehoo/point-line # yarn yarn add @elonehoo/point-line #pnpm pnpm i @elonehoo/point-line Usage import {dec

Elone Hoo 5 Aug 3, 2022
A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.

vscode-powertools A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code. ⚠️ ⚠️ ⚠️ NOTICE: If you have

e.GO Mobile 44 Nov 24, 2022
Prefetch and sync state to client with one line of code, out-of-the-box

vue3-SSR-starter Prefetch and sync state to client with one line of code, out-of-the-box Features vue3 SSR vue-router we don't need vuex anymore one l

周子贤 36 Aug 28, 2022