Skip to content

Commit

Permalink
updated twitter button
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsboost committed Aug 5, 2024
1 parent f3a21b0 commit 698ef39
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 35 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ kodeWeave uses a number of open source projects to work properly:
* [Emmet](http://emmet.io/) - Codemirror Plugin for Zen Coding
* [Pico.css](https://picocss.com/) and [Tailwind CSS](https://tailwindcss.com/) - Used to design the Application's interface.
* [HeroIcons](https://heroicons.com/) and [Font Awesome](https://fontawesome.com/) - Icon library used for the app's ui. (I did have to design the twitter logo icon myself though)
* [Twitter Widgets](https://publish.twitter.com/) - Used to open the project's twitter feed

Development
-------------
Expand Down
Binary file modified go/.DS_Store
Binary file not shown.
33 changes: 16 additions & 17 deletions go/dist/App.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions go/dist/App.js.map

Large diffs are not rendered by default.

18 changes: 4 additions & 14 deletions go/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,16 @@ function LeftMenubar() {
</button>
</li>
<li class="list-none m-0">
<button
<a
aria-label="toggle html"
name="toggle html"
class="${buttonSize} text-sm border-0 px-4 py-3 rounded-md bg-transparent"
style="color: unset;"
onclick="openFeed()"
role="button"
href="https://twitter.com/kodeweave_app"
>
${icons.twitter}
</button>
</a>
</li>
<li class="list-none m-0">
<a
Expand Down Expand Up @@ -1555,16 +1556,6 @@ function editorNav() {
</button>
</div>`;
}
function openFeed() {
// Ask user for confirmation
Modal.render({
large: true,
title: "kodeWeave Feed",
content: `
<iframe class="w-full h-full border-0" src="feed.html" frameborder="0"></iframe>
`
});
}
function emptyStorage() {
// Clear local storage
localStorage.removeItem('kodeWeave');
Expand Down Expand Up @@ -3290,7 +3281,6 @@ async function renderPreview(forceRun = false) {

// Make functions available in global space
window.Modal = Modal;
window.openFeed = openFeed;
window.emptyStorage = emptyStorage;
window.addLibrary = addLibrary;
window.fetchSuggestions = fetchSuggestions;
Expand Down

0 comments on commit 698ef39

Please sign in to comment.