Wednesday, July 15, 2026 1:55:27 AM
> project show esm_website_v1
The unexpected heart of the ESM ecosystem. What started as a simple Rails dashboard has evolved into the command center for thousands of gaming communities, proving that sometimes the best infrastructure projects are the ones you never planned to build.
Details
> index.js
import Vue from 'vue/dist/vue.esm.js';
import {
    getData
} from "../utilities";

export default function (elem) {
    const data = getData(elem, ["content"]);

    const app = new Vue({
        el: elem,
        data: {
          content: data.content,
          maxCharacterCount: 1500
        },
        computed: {
          characterCount: function() {
            if (_.isEmpty(this.content)) return 0;

            return _.size(this.content);
          },
          limitReached: function() {
            return this.characterCount >= this.maxCharacterCount;
          }
        },
        methods: {
          onKeyDown: function() {
            if (!this.limitReached) return;

            this.content = this.content.substring(0, this.maxCharacterCount);
          }
        }
    });
}
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7