Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to recall / save settings #14

Closed
bradgarropy opened this issue Nov 12, 2021 · 6 comments 路 Fixed by #40
Closed

Ability to recall / save settings #14

bradgarropy opened this issue Nov 12, 2021 · 6 comments 路 Fixed by #40
Labels
enhancement New feature or request

Comments

@bradgarropy
Copy link

馃挏 Seriously love this tool!

I would love to be able to easily recall the settings of past code exports. Maybe the initial implementation can be as simple as saving the last known settings in localStorage?

Thanks for considering this feature!

@bradgarropy bradgarropy changed the title Ability to save profiles Ability to recall / save settings Nov 12, 2021
@stevebauman
Copy link
Owner

Thanks so much for your kind words @bradgarropy! Glad you find it useful 馃槃

I'm definitely going to add this in -- it's just a matter of time. Hopefully in the next couple weeks I'll have it up and running 馃憤

@bradgarropy
Copy link
Author

bradgarropy commented Nov 13, 2021

I'm a seasoned react developer, but I'm new to vue. If you point me to the right file(s) I can create a branch and try submitting a PR!

@stevebauman
Copy link
Owner

Sure! That'd be awesome. If you'd like to take a crack at it, here's all the settings for the preview window:

data() {
return {
shiki: null,
highlighter: null,
title: '',
copied: false,
loading: false,
showTitle: true,
showColorMenu: true,
showLineNumbers: false,
exportAs: 'png',
background: 'teal',
editingTitle: false,
themeType: 'light',
themeOpacity: 1.0,
themeName: 'github-light',
themeBackground: '#fff',
hovering: null,
resizing: false,
width: DEFAULT_WIDTH,
height: DEFAULT_HEIGHT,
borderRadius: 12,
fontSize: 16,
padding: 16,
lines: [],
focused: [],
languages: [],
};
},

I've also added local installation instructions to get you up and running:

https://github.com/stevebauman/showcode#local-installation

@stevebauman stevebauman added the enhancement New feature or request label Nov 14, 2021
@nik-418
Copy link

nik-418 commented Nov 15, 2021

+1 for a simple localStorage implementation!

@stevebauman
Copy link
Owner

Implemented! All settings and all tabs are now stored by default in local storage (try making changes, closing the browser window, and then re-visiting showcode.app).

You can now save a tab as a template so you can create new project/screenshots based on the exact same template! 馃帀

@bradgarropy
Copy link
Author

Woah that was fast, thank you so much @stevebauman!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants