diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-22 16:01:31 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-22 16:01:31 -0600 |
| commit | a4c1a145950739ac307eb7607ccedd7b10584d90 (patch) | |
| tree | 74c032d9004218fcd1021f0f301b8edf84150a49 /public | |
| parent | 28ec60ecbc0a39901246f5cb59a8ad05c20de6b1 (diff) | |
feat: require login to view sparkle form
Diffstat (limited to 'public')
| -rw-r--r-- | public/application.js | 3 | ||||
| -rw-r--r-- | public/index.html | 10 |
2 files changed, 4 insertions, 9 deletions
diff --git a/public/application.js b/public/application.js index dcc45f8..35ea2b6 100644 --- a/public/application.js +++ b/public/application.js @@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', (event) => { }, isDisabled: function() { return this.isSending || !this.isValid(); - }, + } }, data() { return { @@ -71,6 +71,7 @@ document.addEventListener('DOMContentLoaded', (event) => { } }) + app.config.compilerOptions.delimiters = ["${", "}"]; app.mount('#app') }) diff --git a/public/index.html b/public/index.html index d9033a5..03a393b 100644 --- a/public/index.html +++ b/public/index.html @@ -20,15 +20,9 @@ </ul> </nav> - <form v-on:submit.prevent="submitSparkle"> - <label>/sparkle <input type="text" placeholder="@tanuki for helping me with my homework!" v-model="sparkle" /> </label> - <button type="submit" v-bind:disabled="isDisabled">✨ Sparkle</button> - </form> - <span class="error">{{ errorMessage }}</span> - - <h1>{{ heading }}</h1> + <h1>${ heading }</h1> <div v-for="sparkle in recentSparkles"> - <p> <strong>{{ sparkle.sparklee }}</strong> {{ sparkle.reason }} </p> + <p> <strong>${ sparkle.sparklee }</strong> ${ sparkle.reason } </p> </div> </main> </body> |
